Forum Discussion
Graphing Calculated Sums
- 7 years ago
Hi,
You could try below measure
Measure = IF ( MIN ( t1[Company_Label] ) = "John's Apples", CALCULATE ( COUNT ( t1[Company_Label] ), t1[Company_Label] = "John's Apples" ), COUNT ( t1[Company_Label] ) - CALCULATE ( COUNT ( t1[Company_Label] ), t1[Company_Label] = "John's Apples" ) )Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for the response, the issue is that your example table shows a grand total of 8, but the industry total is already the grand total. What I really would like is to be able to chart the results like this:
but I don't have a "competitor" company label, I just know it is the sum of industry total minus the sum of John's Apples. I would also like a simple table like this:
but I'm unsure of how to create that.
Hi,
You could try below measure
Measure =
IF (
MIN ( t1[Company_Label] ) = "John's Apples",
CALCULATE ( COUNT ( t1[Company_Label] ), t1[Company_Label] = "John's Apples" ),
COUNT ( t1[Company_Label] )
- CALCULATE ( COUNT ( t1[Company_Label] ), t1[Company_Label] = "John's Apples" )
)Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- DannyPhillips6 years agoRegular Visitor
Thank you so much for the solution! I changed it to the below to accomodate if the count was ever more than 1. This appears to be working.
Measure =
IF (
MIN ( t1[Company_Label] ) = "John's Apples",
CALCULATE ( SUM ( t1[COUNT] ), t1[Company_Label] = "John's Apples" ),
SUM ( t1[COUNT] )
- CALCULATE ( SUM ( t1[COUNT] ), t1[Company_Label] = "John's Apples" )
)