Forum Discussion
Line chart with subtotals and total
- 10 years ago
Hi bullius,
In your scenario, I would suggest you create three measures: values for LineA, LineB and Total. Then place those three measures in chart Values property, without dragging any value to Legend property. Please refer to screenshots below:
Aliqui = CALCULATE(SUM(SalesFact[Units]),Manufacturer[Manufacturer]="Aliqui")
Natura = CALCULATE(SalesFact[Total Units],Manufacturer[Manufacturer]="Natura")
Total = CALCULATE(SUM(SalesFact[Units]),Manufacturer[Manufacturer]="Aliqui") + CALCULATE(SUM(SalesFact[Units]),Manufacturer[Manufacturer]="Natura")
If you have any question, please feel free to ask.
Best Regards,
Qiuyun Yu
That solution works. Thank you!
Sorry to re-animate old topic - but I'm having the same issue and proposed solution does not work (as it's not practical once you hit more than 5-6 categories). Is there an easier way to bring Total line to the line chart? Thank you!