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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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