Forum Discussion
MIkkelHyldig
Helper II
5 years agoFilter on calculated measure
Hi
Im using a calculated measure which basically substract to column:
Difference = (SUM(Sales[Posted Sales Amount]) + SUM(Sales[Retail Sales Amount])).
The values for Store A can be Posted Sales Amount -100,00 EUR and Retail Sales Amount 100,00 EUR.
For Store B its Posted Sales Amount -82,00 EUR and Retail Sales Amount is 100 EUR.
The result would look like this;
Store A: 0,00 EUR
Store B: 12,00 EUR
I would like to filter on results >0 filtering out Store A. How is that possible?
Thanks,
MH
The values for Store A can be Posted Sales Amount -100,00 EUR and Retail Sales Amount 100,00 EUR.
For Store B its Posted Sales Amount -82,00 EUR and Retail Sales Amount is 100 EUR.
The result would look like this;
Store A: 0,00 EUR
Store B: 12,00 EUR
I would like to filter on results >0 filtering out Store A. How is that possible?
Thanks,
MH
MIkkelHyldig , Try measure like
Difference =
var _1= (SUM(Sales[Posted Sales Amount]) + SUM(Sales[Retail Sales Amount]))
return if(_1 >0 , _1, blank())
1 Reply
- amitchandak
Super User
MIkkelHyldig , Try measure like
Difference =
var _1= (SUM(Sales[Posted Sales Amount]) + SUM(Sales[Retail Sales Amount]))
return if(_1 >0 , _1, blank())