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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
angusmglfraser
New Member

Using Slicers to set thresholds

I want to be able to use a slicer with a numerical field to be used as a threshold when filtering other vizualisations, only taking values greater than, or less than the value in the slicer. Is this possible?

2 ACCEPTED SOLUTIONS
v-caliao-msft
Microsoft Employee
Microsoft Employee

Hi @angusmglfraser,

 

Based on my research, this requirement cannot be achieved by using aslicer. You need to use a parameter to do it.

Query Editer>Manage Parameter
Capture.PNGCapture1.PNGCapture2.PNG

 

Reference

https://powerbi.microsoft.com/en-us/blog/deep-dive-into-query-parameters-and-power-bi-templates/

 

Regards,

Charlie Liao

View solution in original post

Hi @angusmglfraser,

 

Currently, it have to be done from the "Edit queries" menu.

 

Regards,

Charlie Liao

View solution in original post

4 REPLIES 4
v-caliao-msft
Microsoft Employee
Microsoft Employee

Hi @angusmglfraser,

 

Based on my research, this requirement cannot be achieved by using aslicer. You need to use a parameter to do it.

Query Editer>Manage Parameter
Capture.PNGCapture1.PNGCapture2.PNG

 

Reference

https://powerbi.microsoft.com/en-us/blog/deep-dive-into-query-parameters-and-power-bi-templates/

 

Regards,

Charlie Liao

Can this parameter be set by some sort of interactive visual control on a page, or does it have to be done from the "Edit queries" menu? 

Hi @angusmglfraser,

 

Currently, it have to be done from the "Edit queries" menu.

 

Regards,

Charlie Liao

tringuyenminh92
Memorable Member
Memorable Member

Hi @angusmglfraser,

 

 Yes, you can. For normal case (when user selects single filter options), i assume that you have fact table with 3 columns - 1 value column and 2 dims (MeasureA,category1,category2)

  • Create new calculated table from value column:
filters = VALUES(Sheet1[MeasureA])
  • Create new calculated measure for your fact table
Measure2 = CALCULATE(SUM(Sheet1[MeasureA]),FILTER(Sheet1,Sheet1[MeasureA] >= FIRSTNONBLANK('filters'[MeasureA],1)  ))

Screenshot 2017-02-02 21.24.41.png

 

 

but what will be displayed/logic when user selects multiple options? in this case, you could try with max or min method instead of firstnonblank()

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.