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
akarasick1
Frequent Visitor

Parameter as filter, display only where a table value is less than or equal to parameter value

I have a list of store numbers and I want to be able to have a parameter (0,100 intervals of 1) in a dropdown, which will filter a table visual to display only those stores whose store number is at or below the selected parameter value.

 

When I create a DAX measure, I am having trouble with 'greater than' or 'less than' values. I was trying to use the following and drop this as a visual level filter (where equal to 1), but am having no success.

 

TestMeasure =

var a = selectedvalue(parameter)

var b = selectedvalue(store[number])

return

if(b<=a,1,0)

1 REPLY 1
OwenAuger
Super User
Super User

@akarasick1, the logic of your measure looks correct to me, and I created a simple model myself using TestMeasure as a visual level filter on a table and it worked fine.

 

As a check, could you place measures corresponding to variables a & b in TestMeasure, plus TestMeasure itself in the table, to confirm they are returning the values you expect?


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.