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

View all the Fabric Data Days sessions on demand. View schedule

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