Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
GrayZatt
New Member

Multiselections Filteringand Grouping?

Hey all, im trying to create an equipment report but im having issues with the results.

 

Usecase:

Name

type

value

ED1

version

V1.2

ED1

co

UK

ED2

version

V1.2

ED2

co

NO

 

Filter in two dropdowns on co=UK and version=V1.2

 

Normal result will be:

Name

type

value

ED1

version

V1.2

ED1

co

UK

ED2

version

V1.2

 

Is it possible to exclude data where both filters are not present and group the remaining like below to get single line for each "Name"?

 

Name

type

value

ED1

Version/co

V1.2/UK

               

2 ACCEPTED SOLUTIONS
v-frfei-msft
Community Support
Community Support

Hi @GrayZatt ,

 

One sample for your reference.

 

Here we need create a calculated table firstly.

 

filter = VALUES(Table1[value])

Then we can create two measures as below to get the excepted result.

 

Type1 = var con1 = CONCATENATEX(Table1,Table1[value])
var con2 = CONCATENATEX('filter','filter'[value])
return
CONCATENATEX(FILTER(Table1,con1=con2),Table1[type],"/")
value1 = var con1 = CONCATENATEX(Table1,Table1[value])
var con2 = CONCATENATEX('filter','filter'[value])
return
CONCATENATEX(FILTER(Table1,con1=con2),Table1[value],"/")

Capture.PNG

 

Pbix as attached.

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

Hi @GrayZatt ,

 

Does that make sense? If so, kindly mark my answer as the solution to close the case please. Thanks in advance.

 

Regards,
Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

3 REPLIES 3
v-frfei-msft
Community Support
Community Support

Hi @GrayZatt ,

 

One sample for your reference.

 

Here we need create a calculated table firstly.

 

filter = VALUES(Table1[value])

Then we can create two measures as below to get the excepted result.

 

Type1 = var con1 = CONCATENATEX(Table1,Table1[value])
var con2 = CONCATENATEX('filter','filter'[value])
return
CONCATENATEX(FILTER(Table1,con1=con2),Table1[type],"/")
value1 = var con1 = CONCATENATEX(Table1,Table1[value])
var con2 = CONCATENATEX('filter','filter'[value])
return
CONCATENATEX(FILTER(Table1,con1=con2),Table1[value],"/")

Capture.PNG

 

Pbix as attached.

 

Regards,

Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Hi @GrayZatt ,

 

Does that make sense? If so, kindly mark my answer as the solution to close the case please. Thanks in advance.

 

Regards,
Frank

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Yes perfect! 🙂

Thanks for your time

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.