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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Anonymous
Not applicable

Grand Total line on line chart

Hi, if I have the following graph (see below), with the Axis being the 'Month', and the the Legend being 'Nature of Work. The Value is the formula calculation : 

 

(SUM('ACCURACY_7DAY (2)'[ON_TIME]) / CALCULATE(COUNTA('ACCURACY_7DAY (2)'[ON_TIME]),ALLEXCEPT('ACCURACY_7DAY (2)','ACCURACY_7DAY (2)'[SCHEDULED_FROM_MONTH].[Month],'ACCURACY_7DAY (2)'[NATURE_OF_WORK])))

 

Does anyone know if it is possible I can produce a grand total line on the line chart, along with the lines split by the Legend?

 

screenshot 3.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file from your Onedrive for Business.

 

Best Regards,

Rico Zhou

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous 

Could you tell me if your problem has been solved? If it is, kindly Accept it as the solution. More people will benefit from it. Or you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file from your Onedrive for Business.

 

Best Regards,

Rico Zhou

Anonymous
Not applicable

Hi @Anonymous 

Now you seems to build a line visual by Year/Month in Axis , NATURE_OF_WORK in Lengend and the value measure return to percentage in Value.

You want to add an other value into secondary values in your Line chart. And you want the grand total in secondary values to be impacted by Lengend.

Your demand is a good idea, while it is not supported to implement in Power BI currently.
You can vote up this idea for this function: 
two values and legend on line chart

Or you can submit a new idea to improve the Power BI.
It is a place for customers provide feedback about Microsoft Office products . What’s more, if a feedback is high voted there by other customers, it will be promising that Microsoft Product Team will take it into consideration when designing the next version in the future.

 

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

amitchandak
Super User
Super User

@Anonymous , if you need another line , means on secondary axis that will not split by legend.

 

You need use a measure like

Calculate([Your meausre], allexcept(Table, Table[Nature of work]))

or

Calculate([Your meausre], allexcept(Table))

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.