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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Help with Measure / Calculated Column

Hello I need help for having the following value.
Save the max value as it is growing.
Sum the the deltas till last avaialble date as it starts decreasing from local max
Any ideas?
Thank you in advance. 

marcoproserpio_2-1644492981457.png

 

 

Table of attributes: 

itemQNTYDate
A76010/02/2022 10:19
B32910/02/2022 10:19
B42610/02/2022 10:19
B63710/02/2022 10:19
B100010/02/2022 10:19
B100010/02/2022 10:19
B100010/02/2022 10:19
B100010/02/2022 10:19
B100010/02/2022 10:19
B100009/02/2022 10:19
B100009/02/2022 10:19
B100010/02/2022 10:19
A100010/02/2022 10:19
A100010/02/2022 10:19
A100010/02/2022 10:19
A100010/02/2022 10:19
A100010/02/2022 10:19
A100008/02/2022 10:19
A100008/02/2022 10:19
A100010/02/2022 10:19

 

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

This appears to be a difference accumulation calculation, but how do we determine when to start the accumulation? Based on the date when the maximum value starts? Could you please provide more example data and the logic behind the calculation? It would be nice to include some examples and some screenshots to illustrate.

In addition, please review the solution in the following threads with similar requirement as you. Hope they can help you.

Calculate Differences of cumulative values by factorial group and date OR id

Dax formula calculate Difference cumulative

yingyinr_0-1645005766417.png

Best Regards

amitchandak
Super User
Super User

@Anonymous , You can remove timestamp and join date with date table

 

You can get last noncontinuous date like 

 

Last Day Non Continuous = CALCULATE([sales],filter(ALLSELECTED('Date'),'Date'[Date] =MAXX(FILTER(ALLSELECTED('Date'),'Date'[Date]<max('Date'[Date])),'Date'[Date])))

 

Day Intelligence - Last day, last non continous day
https://medium.com/@amitchandak.1978/power-bi-day-intelligence-questions-time-intelligence-5-5-5c3243d1f9

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.