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
Anonymous
Not applicable

Help with Dax measure/calculated column

Hi! I need help with creating Dax measure/calculated column. In Column "Value" first row is always 100. Other rows are calculated the following way: The value from the previous row * rate of the curren row + 100. The example is in the attachement.

Example.png

 

 

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi ,  @Anonymous 

 

According to your description, you can try calculated column as below after creating a index:

Value = 
VAR m = [Index]
RETURN
    100
        * (
            SUMX (
                FILTER ( 'Table', [Index] >= 2 && [Index] <= m ),
                VAR i = [Index]
                VAR t =
                    FILTER ( ALL ( 'Table' ), [Index] >= i && [Index] <= m )
                RETURN
                    CALCULATE ( PRODUCTX ( t, [Rate] ) )
            )
                + CALCULATE ( VALUES ( 'Table'[Rate] ), FILTER(ALL('Table'),'Table'[Index] = 1 )
        ))

Here is a sample :

URL: https://wicren-my.sharepoint.com/:u:/g/personal/michael_wicren_onmicrosoft_com/EeRW33d2a0NMgZXo3yJhwYMBMI2oCGW9stq8HfdNHV8U-g?e=LaCV05

 

a1.png

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi ,  @Anonymous 

 

According to your description, you can try calculated column as below after creating a index:

Value = 
VAR m = [Index]
RETURN
    100
        * (
            SUMX (
                FILTER ( 'Table', [Index] >= 2 && [Index] <= m ),
                VAR i = [Index]
                VAR t =
                    FILTER ( ALL ( 'Table' ), [Index] >= i && [Index] <= m )
                RETURN
                    CALCULATE ( PRODUCTX ( t, [Rate] ) )
            )
                + CALCULATE ( VALUES ( 'Table'[Rate] ), FILTER(ALL('Table'),'Table'[Index] = 1 )
        ))

Here is a sample :

URL: https://wicren-my.sharepoint.com/:u:/g/personal/michael_wicren_onmicrosoft_com/EeRW33d2a0NMgZXo3yJhwYMBMI2oCGW9stq8HfdNHV8U-g?e=LaCV05

 

a1.png

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

It worked! Thank you!

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