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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
juliliscarmo
Helper I
Helper I

TWRR -time-weighted return

Hello everyone,

I'm trying to do TWRR (time-weighted return) on Power BI. Therefore, the formula consists of two steps, first the increment value of two periods (+1), and then the product value of the increment.
I did the increment measure, but I can not use a measure in the PRODUCT formula.
Do you have any idea how I can solve this?

1.PNG2.PNG

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @juliliscarmo,

 

Maybe you can try to use below formula, I extend measure as column and add to variable table, then use this variable table and new column to calculate.

Product Increase =
VAR temp =
    ADDCOLUMNS ( ALLSELECTED ( Table1 ), "InCrease", [increase] )
RETURN
    PRODUCTX ( FILTER ( temp, [ID] = MAX ( Table1[ID] ) ), 1 + [InCrease] )

20.PNG

 

Regards,

Xiaoxin Sheng

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @juliliscarmo,

 

Maybe you can try to use below formula, I extend measure as column and add to variable table, then use this variable table and new column to calculate.

Product Increase =
VAR temp =
    ADDCOLUMNS ( ALLSELECTED ( Table1 ), "InCrease", [increase] )
RETURN
    PRODUCTX ( FILTER ( temp, [ID] = MAX ( Table1[ID] ) ), 1 + [InCrease] )

20.PNG

 

Regards,

Xiaoxin Sheng

Hi @Anonymous it didn't work. Could you please send me the file you have made.
Thank you
Juli
Anonymous
Not applicable

Hi @juliliscarmo,

 

I attach it below.

 

Regards,

Xiaoxin Sheng

Thank you!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.