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
AP45
New Member

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
V-pazhen-msft
Community Support
Community Support

@AP45 

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

 

Paul

VijayP
Super User
Super User

@AP45 
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!


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