cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
GregDeckler

How to Get Your Question Answered Quickly

Power BI Super User, Greg Deckler, explains

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Back to School Contest

Back to School Contest

Engage and empower students with Power BI!

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Ideas
Users Online
Currently online: 43 members 848 guests
Please welcome our newest community members: