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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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