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
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
- bullius10 years ago
Helper V
That solution works. Thank you!
- wildmight20178 years ago
Advocate II
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!
- shishir9998 years ago
Helper II
Hi, In Line chart, I am able to calculate the Total. But in my scenario, there are 3 Status (Success, Failure, In-Progress) in filter. S=5, F=3, IP = 2 ; Total=10 Once, I filter the status (Success), the user want to see the status =5 for the "SUCCESS" and the Total of ALL Status=10. But, it is only calculating status=5. *********** CALCULATE(COUNTROWS(ALL_Record), Filter((ALL_Record), ALL_Record[Build_Date] <= MAX(Build_Type[Date]) )) ************* Could someone, please help in this. Shishir