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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors