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

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
v-yulgu-msft
Employee
Employee

Hi @Anonymous,

 

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.

View solution in original post

2 REPLIES 2
GaleGartling
Frequent Visitor

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.

 

 

v-yulgu-msft
Employee
Employee

Hi @Anonymous,

 

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.

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.