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
sv12
Helper III
Helper III

Dax Help

Hi, I am trying to calculate the below excel formula in Power BI as a calculated column (DAX or MQuery or Python)

 

Formula:

IDA = ((1 + (Current value of PX_LAST/10000)) * Next IDA value)

 

Sample Data with calculation:

As of DatePX_LastIDA
1/11/2013110,066,030.73
1/10/20134110,065,024.23
1/9/20134310,023,926.13
1/8/2013-69,981,007.80
1/7/2013-139,987,000.00
  10000000

 

Any help would be greatly appreciated! 

 

Thasnk,

SV

1 ACCEPTED SOLUTION

Well, never say never.

 

Behold:

 

IDA_m = 1+max('Table'[PX_Last])/10000

IDA_p = 
var d=max('Table'[As of Date])
return 10000000*PRODUCTX(filter(all('Table'),'Table'[As of Date]<=d),[IDA_m])

View solution in original post

10 REPLIES 10

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.