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
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
v-rzhou-msft
Community Support
Community Support

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
v-rzhou-msft
Community Support
Community Support

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

v-rzhou-msft
Community Support
Community Support

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))

 

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.