The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Solved! Go to Solution.
Put the measure in visual level filter and filter it to is greater than 500
Hi @OneWithQuestion,
You can also use dax formula to add condition to filter the measure:
For example:
Old measure
SubTotal =
var currProduct=LASTNONBLANK(Sheet3[Product],Sheet3[Product])
return
SUMX(FILTER(ALL(Sheet3),Sheet3[Product]=currProduct),Sheet3[Sales Amount])
Modified:
SubTotal =
var currProduct=LASTNONBLANK(Sheet3[Product],Sheet3[Product])
return
SUMX(FILTER(ALL(Sheet3),Sheet3[Product]=currProduct&&Sheet3[Sales Amount]>500),Sheet3[Sales Amount])
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
Hi @OneWithQuestion,
You can also use dax formula to add condition to filter the measure:
For example:
Old measure
SubTotal =
var currProduct=LASTNONBLANK(Sheet3[Product],Sheet3[Product])
return
SUMX(FILTER(ALL(Sheet3),Sheet3[Product]=currProduct),Sheet3[Sales Amount])
Modified:
SubTotal =
var currProduct=LASTNONBLANK(Sheet3[Product],Sheet3[Product])
return
SUMX(FILTER(ALL(Sheet3),Sheet3[Product]=currProduct&&Sheet3[Sales Amount]>500),Sheet3[Sales Amount])
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
Put the measure in visual level filter and filter it to is greater than 500