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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
AMCW
Frequent Visitor

Time-Weighted Return

I need some assistance creating a measure to calculate YTD Time-Weighted Return ("TWR")

To simplify as much as possible, the user will be able to filter by any number of months in the year but will always choose contiguous months and will always start with Jan. 

 

Ex. Jan

or Jan & Feb

or Jan & Feb & Mar, etc.....so YTD.

 

I have "Return" as a measure that is correctly calculating at a per month basis.

I need the time-weighted return ("TWR") to calculate through the max month selected.

 

In the example below,

if the user selected Jan, Feb, Mar, the TWR = 4.34%

if the user selected Jan, Feb, Mar, Apr, May, the TWR = 3.14%

 

 

 

TWR.jpg

 

 

 

 

 

 

3 REPLIES 3
alvaro_miranda
Frequent Visitor

Any update on this?

vapid128
Solution Specialist
Solution Specialist

add colnum

Return+1 =[return]+1

 

Measure:

 

 

var maxMonth = max([month/year])

return

calculate(
product([return+1]),
Filter(ALL/ALLSELECTED([month/year]),[month/year]<=maxMonth)
)
-1

 

 

AMCW
Frequent Visitor

Your measure will not work as is since "Product" requires a column. 

"Return" is not a column in my dataset. The key identifies it as a measure and it needs to stay as such.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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.