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
Anno2019
Helper IV
Helper IV

Use measure result as filter

Hi Guru's

Seems like such a small thing, I however keep failing.

 

I have a measure:

Multiple Fruits =if('table1'[sales]>'Parameter'[selected %],"Only One","More than One")

 

[selected %] =a percentage from 0.01 to 0.5 "Which the user can adjust with a slicer".  The slicer uses a table GENERATESERIES(0, 1, 0.01)

[selected %] is calculated with this formula selected % = SELECTEDVALUE('Parameter'[% value], 0.1)

[sales] = no calculation, this is the value of the sales in USD

 

Here is the problem.  I would like to use [Multiple Fruits] as a filter, would like the user to be able to choose "Only One" and see records only relating to "Only One".

I tried to create a column with the same calculation with no success.

 

Does anyone know how I could achieve this?

 

 

1 ACCEPTED SOLUTION

Hi, @Anno2019 

Please try the following steps:

1.Enter a new table ’Slicer‘ as below and apply it to slicer:

veasonfmsft_0-1658908715298.png

2. create a filter measure

filter = IF('Table'[Multiple Fruits] in VALUES(Slicer[Multiple Fruits]),1,0)

3. drag this measure to table visual filter pane

veasonfmsft_4-1658909100233.png

 

Best Regards,
Community Support Team _ Eason
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

3 REPLIES 3
amitchandak
Super User
Super User

@Anno2019 , To me it seems like you need bucketing of a measure

I have done some work here

Dynamic Segmentation Bucketing Binning
https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Segmentation-Bucketing-Binning/m-p/1...


Dynamic Segmentation, Bucketing or Binning: https://youtu.be/CuczXPj0N-k

 

Dynamic segmentation -Measure to Dimension conversion: https://youtu.be/gzY40NWJpWQ

@amitchandak 

https://www.dropbox.com/s/0vtwucvl7po94et/Filter%20on%20dynamic%20measure.pbix?dl=0

 

I took the time to put this in a pbix file.

Hope the above link works.  I need to be able to use the [Multiple Fruits] as a filter.

Use Measure as filter.png

 

Hi, @Anno2019 

Please try the following steps:

1.Enter a new table ’Slicer‘ as below and apply it to slicer:

veasonfmsft_0-1658908715298.png

2. create a filter measure

filter = IF('Table'[Multiple Fruits] in VALUES(Slicer[Multiple Fruits]),1,0)

3. drag this measure to table visual filter pane

veasonfmsft_4-1658909100233.png

 

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

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.