Forum Discussion

bvsaicharitha's avatar
7 years ago

Line graph with summation values

For the data given below and the graph attached, I need a additional line graph of the summation of mobile sales in the same graph showing the brands. Please help me. I want to see how my entire mobile sales are growing and also individual brands over time on the same line graph 

Type Brand Name Sales Date 
Mobile A1000Jan 
Mobile B1500Jan 
Mobile C2300Jan 
Mobile D5000Jan 
Mobile A1450Feb
Mobile B1678Feb
Mobile C1674Feb
Mobile D1683Feb

6 Replies

  • Stachu's avatar
    Stachu
    Community Champion

    try this

    Total = CALCULATE(SUM(Table[Sales]), ALL(Table[Brand Name]))
    • bvsaicharitha's avatar
      bvsaicharitha
      Helper I

      If I create a total measure, how can i include that in the existing graph? 

      • Stachu's avatar
        Stachu
        Community Champion

        I thought that you can use multiple measures with a legend but that's not the case
        you would need to remove the Brand Name from the legend, and create set of measures per Brand, e.g.

        A = CALCULATE(SUM('Table'[Sales]), 'Table'[Brand Name]="A")  

        then you can have multiple measures in a visual, but I imagine that's lot of effort with multiple brands