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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
OneWithQuestion
Post Prodigy
Post Prodigy

Possible to filter on a measure?

If I have total sales and want to filter where greater than $500 is that possible? Can I use a slider to adjust on the fly?
2 ACCEPTED SOLUTIONS
Vvelarde
Community Champion
Community Champion

@OneWithQuestion

 

Put the measure in visual level filter and filter it to is greater than 500




Lima - Peru

View solution in original post

Anonymous
Not applicable

Hi @OneWithQuestion,

 

You can also use dax formula to add condition to filter the measure:

 

For example:

Capture3.PNG

 

Old measure
SubTotal =
var currProduct=LASTNONBLANK(Sheet3[Product],Sheet3[Product])
return
SUMX(FILTER(ALL(Sheet3),Sheet3[Product]=currProduct),Sheet3[Sales Amount])

 

Capture.PNG

 

Modified:
SubTotal =
var currProduct=LASTNONBLANK(Sheet3[Product],Sheet3[Product])
return
SUMX(FILTER(ALL(Sheet3),Sheet3[Product]=currProduct&&Sheet3[Sales Amount]>500),Sheet3[Sales Amount])

 

Capture2.PNG

 

In addition, Vvelarde's point also works, but if you use the "all" filter in your measure, you should use "allselect" to replace it.

 

Regards,
Xiaoxin Sheng

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @OneWithQuestion,

 

You can also use dax formula to add condition to filter the measure:

 

For example:

Capture3.PNG

 

Old measure
SubTotal =
var currProduct=LASTNONBLANK(Sheet3[Product],Sheet3[Product])
return
SUMX(FILTER(ALL(Sheet3),Sheet3[Product]=currProduct),Sheet3[Sales Amount])

 

Capture.PNG

 

Modified:
SubTotal =
var currProduct=LASTNONBLANK(Sheet3[Product],Sheet3[Product])
return
SUMX(FILTER(ALL(Sheet3),Sheet3[Product]=currProduct&&Sheet3[Sales Amount]>500),Sheet3[Sales Amount])

 

Capture2.PNG

 

In addition, Vvelarde's point also works, but if you use the "all" filter in your measure, you should use "allselect" to replace it.

 

Regards,
Xiaoxin Sheng

Vvelarde
Community Champion
Community Champion

@OneWithQuestion

 

Put the measure in visual level filter and filter it to is greater than 500




Lima - Peru

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Solution Authors
Top Kudoed Authors