cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
Microsoft

@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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors