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
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
Employee
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
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.