Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
bvsaicharitha
Helper I
Helper I

Line graph with summation values

Capture.PNGFor 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 6
Stachu
Community Champion
Community Champion

try this

Total = CALCULATE(SUM(Table[Sales]), ALL(Table[Brand Name]))


Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

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

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



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

I think If I add an extra custom row with the summation of the total, then,I can use it in the graph.  Can you help me how can i create such custom row?

Hi @bvsaicharitha,

 

I'm afraid that we may not add custom rows in power bi.

 

Actually, I'm a little confused about your requirement.

 

If it is convenient, could you share your desired output so that we could help further on it?

 

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi,

 

This is the similar output that I am interested .

 

Example ,the top green one is the summation of all the brand sales and the rest colors are the individual brands . Ideally, when I create the line graph, I will only get the individual ones by setting legend. I am interested to see the total as well in the same graph. Now the green  graph is total of all sales over period

Picture.PNG

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.