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
Syndicate_Admin
Administrator
Administrator

Create a filter of a numeric/economic measure

Good morning

I have a report with calculated economic measures of this kind.

Sales Consumption = SUM('AACT TICKETS')
And I would like to create a filter in the report on some of these measures of this kind.
JLVICENTE_0-1673521529915.png

When I drag the measurement to the filter object it does nothing.

JLVICENTE_1-1673521584037.png

JLVICENTE_2-1673521720559.png

I don't know if anyone can help me.

Thank you.

4 REPLIES 4
johnt75
Super User
Super User

You can't use a measure on a slicer, but you could create a workaround. Add a new numeric range parameter with start and end values big enough to cover all the values which your measure could foreseeably return.

Then you could create a new measure to use as a filter, like 

Value is visible =
VAR CurrentValue = [Sales Consumption]
VAR MinSliderValue =
    MIN ( 'Number range'[Value] )
VAR MaxSliderValue =
    MAX ( 'Number range'[Value] )
RETURN
    IF ( MinSliderValue <= CurrentValue && CurrentValue <= MaxSliderValue, 1 )

Add this new measure as visual level filter to only show when the value is 1

Hi how are you, I implemented your solution to my board (thank you very much), but segmentation only affects one object, meaning that when I move the slider, only one object is affected. I added the measurements as visual level filters to the other objects, but it doesn't work. I would like to know if it can be resolved.

1)

Lean___1-1705089337902.png

2)

Lean___2-1705089405118.png

Thank you very much in advance

Good I have applied the changes that you have indicated I have the parameter

JLVICENTE_0-1673529291560.png

associated with the filter object

JLVICENTE_2-1673529337248.png

And I have created the measure as you indicate.

Value is visible =
WHERE CurrentValue = [Consumer Sales]
WHERE MinSliderValue =
MIN ( 'Number range'[Number range] )
WHERE MaxSliderValue =
.MAX ( 'Number range'[Number range] )
RETURN
IF ( MinSliderValue <= CurrentValue && CurrentValue <= MaxSliderValue, 1 )
Something that happens to me is that to the extent it does not let me put
MIN ( 'Number range'[Value] )
JLVICENTE_3-1673529586718.png

OK, the column is called Number Range as well. Just change 'Number Range'[Value] to 'Number Range'[Number Range] in both instances.

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