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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anno2019
Helper IV
Helper IV

Use a measure as a filter

Hi Guru's

My origin post was https://community.powerbi.com/t5/Desktop/Calculated-Column-based-on-date-fields-to-show-Order-Status...

 

But I am now struggling with the second portion of the problem.

 

My Calculated Column which is a MEASURE returns text values Column Name [Shipment Status].

"Order not yet booked"

"Order Departed but not arrived"

etc etc

 

I need to use this calculated measure as a filter slicer, I would like to choose one of the returned values and see a lit of all orders which have that particular status in a table.

1 ACCEPTED SOLUTION
v-diye-msft
Community Support
Community Support

Hi @Anno2019 

 

Sorry for my late reply on the previous case.

You can add another new table with only 1 column which list the status:

2.png

And then add the measure 2 :

Measure 2 = var a = SELECTEDVALUE(Table2[Column1])
Return
IF(a=BLANK(),[Measure],MAXX(FILTER(Table1,[Measure]=a),[Measure]))

Please note that make sure measure 2 is not blank.

3.png

The final result shown as:

4.png

Pbix attached here for your reference: https://wicren-my.sharepoint.com/:u:/g/personal/dinaye_wicren_onmicrosoft_com/EcLQeVDdkAlEsYY-lrueqN...

 

Best regards,

Dina Ye

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

View solution in original post

2 REPLIES 2
v-diye-msft
Community Support
Community Support

Hi @Anno2019 

 

Sorry for my late reply on the previous case.

You can add another new table with only 1 column which list the status:

2.png

And then add the measure 2 :

Measure 2 = var a = SELECTEDVALUE(Table2[Column1])
Return
IF(a=BLANK(),[Measure],MAXX(FILTER(Table1,[Measure]=a),[Measure]))

Please note that make sure measure 2 is not blank.

3.png

The final result shown as:

4.png

Pbix attached here for your reference: https://wicren-my.sharepoint.com/:u:/g/personal/dinaye_wicren_onmicrosoft_com/EcLQeVDdkAlEsYY-lrueqN...

 

Best regards,

Dina Ye

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Perfect Perfect Perfect...it works!!!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.