Forum Discussion
juliliscarmo
Helper I
8 years agoTWRR -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 t...
- Anonymous8 years ago
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] )Regards,
Xiaoxin Sheng
Anonymous
8 years agoNot 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] )
Regards,
Xiaoxin Sheng
juliliscarmo
Helper I
8 years agoHi Anonymous it didn't work. Could you please send me the file you have made.
Thank you
Juli
Thank you
Juli
- Anonymous8 years agoNot applicable
- juliliscarmo8 years ago
Helper I
Thank you!