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
hyggins
Helper I
Helper I

DAX calculation to find Date when total becomes a certain value (2x, 3x, etc.)

Good afternoon!

 

I have three columns: Date, Running Total and Growth. I am wanting to create another column ("Date Doubled") that indicates when, on a later date, the Running Total doubled.  See example data below. On 1/1 the Running Total was 621. On 1/4 the Running Total was 1,247. This is the earliest date when Running Total was equal to or more than the 1/1 value of 621. Thank you!

 

DateRunning TotalGrowthDate Doubled
1/1/2020621 1/4/2020
1/2/20207721511/6/2020
1/3/202010262541/7/2020
1/4/202012472211/8/2020
1/5/202015252781/10/2020
1/6/202020004751/11/2020
1/7/20202366366 
1/8/20202651285 
1/9/20202808157 
1/10/202039291121 
1/11/20204638709 
1 ACCEPTED SOLUTION
camargos88
Community Champion
Community Champion

Hi @hyggins ,

 

Try this code :

 

Column =
VAR _date = 'Table'[Date]
VAR _value = 'Table'[Running Total]
RETURN CALCULATE(MIN('Table'[Date]); FILTER(ALL('Table'); 'Table'[Running Total] >= _value * 2))


 
Ricardo


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



View solution in original post

2 REPLIES 2
camargos88
Community Champion
Community Champion

Hi @hyggins ,

 

Try this code :

 

Column =
VAR _date = 'Table'[Date]
VAR _value = 'Table'[Running Total]
RETURN CALCULATE(MIN('Table'[Date]); FILTER(ALL('Table'); 'Table'[Running Total] >= _value * 2))


 
Ricardo


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



az38
Community Champion
Community Champion

Hi @hyggins 

Date Doubled = 
CALCULATE(
MIN('Table'[Date]), 
FILTER(ALL('Table'),'Table'[Running Total] >= 2* SELECTEDVALUE('Table'[Running Total]) )
)

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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