Forum Discussion
espinozan
Helper I
9 years agoGross Margin Average
Hello, I'm trying to have a Card visual in my report that has the average percent of GM across all products. I currently have a measure that calculates GM. How can I have the Card visual show the...
- 9 years ago
Hi espinozan,
If there is no any Slicers/Filters applied on your report, then the formula you provided above will calculates GM across all products. Or it will be calculated under the selected data.
To ignore all filters, and always calculates GM across all products, the formula below is for your reference. :smileyhappy:
% GM = CALCULATE ( DIVIDE ( SUM ( SAPdata[Total Revenue NBT] ) - SUM ( SAPdata[Cost Sales Total] ), SUM ( SAPdata[Total Revenue NBT] ) ), ALL ( SAPdata ) )Regards
v-ljerr-msft
Microsoft Employee
9 years agoHi espinozan,
If there is no any Slicers/Filters applied on your report, then the formula you provided above will calculates GM across all products. Or it will be calculated under the selected data.
To ignore all filters, and always calculates GM across all products, the formula below is for your reference. :smileyhappy:
% GM =
CALCULATE (
DIVIDE (
SUM ( SAPdata[Total Revenue NBT] ) - SUM ( SAPdata[Cost Sales Total] ),
SUM ( SAPdata[Total Revenue NBT] )
),
ALL ( SAPdata )
)
Regards