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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors