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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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

4 REPLIES 4
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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@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.

It works perfect thank you very much! It's just what I was needing to do.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors