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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
jonarm9
New Member

Comparing current year monthly data with previous years

I'm very new to Power BI, so please excuse me if this is a very basic question. I have a stacked column chart showing monthly activity in a few ledger accounts by month (one column per month, stacking on GL accounts). I would like it to compare this monthly data with data from months of previous years. However, if I expand my filter to include older dates, it does give me additional columns but in chronological order. I've tried the clustered chart, but then I lose the stacking ability (not to mention that it clusters on ledger account and not year).

 

Is there some way I can do this? Thanks for any help you can provide!

 

 

2 REPLIES 2
v-sihou-msft
Microsoft Employee
Microsoft Employee

@jonarm9

 

In this scenario, you can create another measure to calcualte the same month data in previous year with PARALLELPERIOD() function. Then you just need to include both Current and Previous fields into Value.

 

Capture99.PNG

 

Regards,

@jonarm9 First, you'll need a date table if you don't have one. Second, you can refer to this thread as you will need to create a DAX calculation to visualize the Year over Year values.

 


Looking for more Power BI tips, tricks & tools? Check out PowerBI.tips the site I co-own with Mike Carlo. Also, if you are near SE WI? Join our PUG Milwaukee Brew City PUG

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors