Forum Discussion
Data4Beer
8 years agoFrequent Visitor
Rolling 60 Day Balance
I am trying to do a 60 day rolling balance. Please review my screenshot below and help me see where I am going wrong. Nothing is populating in the highlighted column. 60 Day Balance = CALCULAT...
- 8 years ago
HI Data4Beer
Try this MEASURE
Rolling balance = CALCULATE ( SUM ( TableName[Amount] ), DATESINPERIOD ( TableName[Date], SELECTEDVALUE ( TableName[Date] ), -60, DAY ) )
Data4Beer
8 years agoFrequent Visitor
Hi There
Yes I have just tried it as a calculation. When I display the result as a table, the rolling 60 day balance just reflects the balance amount as shown in the screenshot below
Zubair_Muhammad
Community Champion
8 years agoHI Data4Beer
Try this MEASURE
Rolling balance =
CALCULATE (
SUM ( TableName[Amount] ),
DATESINPERIOD ( TableName[Date], SELECTEDVALUE ( TableName[Date] ), -60, DAY )
)- Data4Beer8 years agoFrequent Visitor
Thank you, this has worked!