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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Ice_82
Frequent Visitor

Difference with previous data available

Hi,

I have to calculate the difference with previuous data avaiable, but I dont' have a fix delta time:

amvaldelta
30/11/2022500067%
31/12/2021300050%
31/12/2020200067%
31/06/20201200 

 

With a defined period (11 moth) no problem

DELTA = (SUM(table[val])-CALCULATE(SUM(table[val]),PARALLELPERIOD(table[am],-11,MONTH)))/CALCULATE(SUM(table[val]),PARALLELPERIOD(table[am],-11,MONTH))

 

But if the period is not fixed which is the solution?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Ice_82 , refer if the new offset function can help

Offset Compare Categories, Time Intelligence MOM, QOQ, and YOY: https://youtu.be/5YMlkDNGr0U

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
CNENFRNL
Community Champion
Community Champion

CNENFRNL_0-1671480923109.png

 

For fun only, a showcase of powerful Excel worksheet formula,

CNENFRNL_1-1671482274322.png


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

Sorry I simplified the real aggregation, my data are grouped in this way:

 

amliv1flagvaldelta 
30/11/2022group1a100043% 
  b1500114% 
 group2a100011% 
  b200067% 
31/12/2021group1a70017% 
  b70040% 
 group2a90013% 
  b120020% 
30/11/2021group1a600  
  b500  
 group2a800  
  b1000  

 

In this situation, how can I modify your code?

Thanks

amitchandak
Super User
Super User

@Ice_82 , refer if the new offset function can help

Offset Compare Categories, Time Intelligence MOM, QOQ, and YOY: https://youtu.be/5YMlkDNGr0U

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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