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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.