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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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,

Seth_C_Bauer
Community Champion
Community Champion

@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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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