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
mws5872
Helper II
Helper II

year over year comparison with column series

On a basic chart you know how you can use the legend to show the split ( mix) of of the values in a bar chart. When using a line and clustered column chart you cannot do something similar. 

 

What I was trying to do is to create a YoY comparison for months with the line representing the delta % between previous and current ( this is easy and I have it done as of now)  look at the two graphics and think of how these would be combined. They want to see the YoY amount but they also want to see the mix change. 

sample2.PNG

sample.PNG

5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

 

This seems doable.  Please share the link from where i can download your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-danhe-msft
Employee
Employee

Hi @mws5872,

Based on my test, I suggest you use a calculated column to show your YOY, you could refer to below steps:

Sample data:

1.PNG

Create a new table:

Calender = CALENDARAUTO()

Create a calcualted column:

YOY = var a='Table1'[Date]-365
var b=CALCULATE(SUM(Table1[Value]),FILTER('Table1','Table1'[Date]=a))
return b/([Value]-b)+0

Create a Line and stacked column chart:

1.PNG

 

You could also download the pbix file to have a view.

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

sorry but that is not what the client is looking for.

 

 

think of it this way 

 

2017 and 2018 ( year values) for total sales with the Py and Cy values stacked next to each other. Inside that total sales there are different categories say car types : Sedan, SUV, Luxury, Hybrid. We would want to see the amount of the total sales for each categories in the side by side bar chart. The line will represent the delta between 2017 and 2018 total sales growth/decrease

 

 

I hope that helps.

Hi @mws5872,

Could you please share the pbix file if possible and post your desired result?

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Sure! I could do that but the problem I couldnt get it to work at actually.

 

Basically its a mix bar chart plus using a line chart on top of it.

 

 

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.

Top Solution Authors