cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
poubcool Frequent Visitor
Frequent Visitor

Category share and total line

Hi,

 

Lets say I have 3 columns:

- Sales amount

- Product (A, B or C)

- Date

 

I move Sales to value, Date to Axe and Product to legend. I select a line chart I can now see the amount of each product sold per day with three lines referring to each of the products A, B and C.

 

How can I now add a total sales line to the (same) chart?

 

Many thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
v-yulgu-msft Super Contributor
Super Contributor

Re: Category share and total line

Hi @poubcool,

 

It is not allowed to add multiple lines together with legend to a line chart visual. As a workaround, I would suggest you choose Line and Clustered column chart.

 

Please Sales to column value, Date to Shared Axis and Product to column series. Then, create a measure to calculate total values and add it to line value.

5.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 REPLIES 2
v-yulgu-msft Super Contributor
Super Contributor

Re: Category share and total line

Hi @poubcool,

 

It is not allowed to add multiple lines together with legend to a line chart visual. As a workaround, I would suggest you choose Line and Clustered column chart.

 

Please Sales to column value, Date to Shared Axis and Product to column series. Then, create a measure to calculate total values and add it to line value.

5.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
GaleGartling Frequent Visitor
Frequent Visitor

Re: Category share and total line

I did this in the data.  I created a query to pull the data and then UNION the same query but this time with Total as product

so select [Sales Amount], Product, date from table1

UNION

select [Sales Amount], 'Total' AS product, date from table1

 

Then total is one of my products with the total amount.

 

 

Helpful resources

Announcements
Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Power BI Helps Homeless and Trouble Youth

Power BI Helps Homeless and Trouble Youth

We spoke with Power BI Super User, Greg Deckler, about his charity work

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Kudoed Authors
Users Online
Currently online: 136 members 1,676 guests
Please welcome our newest community members: