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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

How to compare Data from this year to last year

I want to calculate %change from last year up until this year. 

 

Im working with traffic data for a project, number wise is it possible to calculate up until Feb 23rd last year because when i do the comparison it accounts for the 2020 data for all of Feburary and it throws off the numbers. 

 

There is lots of data i just made a false dataset here that is very similar. 

Capture.PNG

 

 

3 REPLIES 3
Anonymous
Not applicable

@Anonymous 

I would like to help you but seems we don't have the access permission to that link, 

 

Paul

VijayP
Super User
Super User

@Anonymous 
you can use YTD 
For Current YTD = Calculate(Count(DAta),DAtesytd(DateDim[date])
Fro LY  YTD = Calculate(
                                        calculate(count(data),sameperiodlastyear(datedim[date]),
                                         Datesytd[datedim[date]))
This will give exact comparsion on current date to last year as on date only. Let me know if any issues.

else share the data in excel format to create pbix file




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Anonymous
Not applicable

sorry im new to this I dont think it worked... here is a link to the pbix file that i created. https://drive.google.com/file/d/1UuFgS-C74ucEQj_QOu29Q8sTqyfHYExQ/view?usp=sharing

do you mind taking a look and maybe using the formula to see if it worked. Then i could follow along maybe i was inputting the wrong things. 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors