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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
ahhollan
Helper I
Helper I

Year over Year AND Month over Month with two categories

I need a line or bar chart to show year over year comparison for two categories but also show month at same time. Is that possible? My data shows the columns 'Reported Date' and Category with values of Covid or Non-Covid. I need to show Year over year comparision by month. I'm new to Power BI and using quick measures and DAX. Any help would be appreciated.

1 ACCEPTED SOLUTION
v-xulin-mstf
Community Support
Community Support

Hi @ahhollan,

 

You can try this:

v-xulin-mstf_0-1611743098827.png

 

v-xulin-mstf_1-1611743098830.png

 

Here is the demo, please try it: Year over Year AND Month over Month with two categories

 

Best Regards,

Link

 

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
v-xulin-mstf
Community Support
Community Support

Hi @ahhollan,

 

You can try this:

v-xulin-mstf_0-1611743098827.png

 

v-xulin-mstf_1-1611743098830.png

 

Here is the demo, please try it: Year over Year AND Month over Month with two categories

 

Best Regards,

Link

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

nandic
Resident Rockstar
Resident Rockstar

Hi @ahhollan ,
You could check accepted solution on this link, it is pretty the same topic: https://community.powerbi.com/t5/Desktop/Year-over-Year-calculation/td-p/75403 
In other words, there are several ways to combine current and previous year (DateAdd function, SamePeriodLastYear, PreviousYear) - you might check more about these functions for easier use.

Regards,
Nemanja Andic

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.