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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
jovendeluna21
Helper IV
Helper IV

How to show total on a line graph as secondary across selected line values?

Hi I am trying to add a total line to a line graph. As the attachment shows, there are selected states each with their own trend line. However, I want to add a line that is the total of of all states or Total U.S. as secondary on which the line will be bit larger/broader than the primary lines. I just want to compare the trend of the National/Total U.S. to selected states.

Is this even possible?

If so, how is it done?

https://drive.google.com/file/d/1HPYREA1Z79jxDkcqnvg_IEpe2RBwwBoZ/view?usp=sharing

 

covid.JPG

1 ACCEPTED SOLUTION
iXpert_info
Helper II
Helper II

Hey @jovendeluna21 

I'd suggest you to create separate measure for each state and a separate measure for total I know its tedious task but this way you will be able to see the results you want to see. as explained in below link
https://community.powerbi.com/t5/Desktop/Line-chart-with-total-as-a-Legend/td-p/854191

Another suggestion I'd give you is create a Line and stacked column chart where set total value as Line value and States values as column values and location will be as column series.

iXpert_info_0-1611426856653.png


Did I Answer your question? Please mark this as solution

Best Regards
Jay Patel
iXpert Analytics

 

View solution in original post

2 REPLIES 2
iXpert_info
Helper II
Helper II

Hey @jovendeluna21 

I'd suggest you to create separate measure for each state and a separate measure for total I know its tedious task but this way you will be able to see the results you want to see. as explained in below link
https://community.powerbi.com/t5/Desktop/Line-chart-with-total-as-a-Legend/td-p/854191

Another suggestion I'd give you is create a Line and stacked column chart where set total value as Line value and States values as column values and location will be as column series.

iXpert_info_0-1611426856653.png


Did I Answer your question? Please mark this as solution

Best Regards
Jay Patel
iXpert Analytics

 

Hello, Jay.

It worked! Thank you very much!

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors