Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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 = CALCULATE(sum('BI - Discounts Balance'[Balance]),DATEADD('BI - Discounts Balance'[TransactionDate], 60, DAY))
Thank you !
Solved! Go to Solution.
HI @Data4Beer
Try this MEASURE
Rolling balance = CALCULATE ( SUM ( TableName[Amount] ), DATESINPERIOD ( TableName[Date], SELECTEDVALUE ( TableName[Date] ), -60, DAY ) )
Hi @Data4Beer,
Have you tried creating a measure instead to see if it works? If you still have any question on this issue, feel free to post here.
Regards
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
HI @Data4Beer
Try this MEASURE
Rolling balance = CALCULATE ( SUM ( TableName[Amount] ), DATESINPERIOD ( TableName[Date], SELECTEDVALUE ( TableName[Date] ), -60, DAY ) )
Thank you, this has worked!
You can't do this kind of calculation as a column - add the calculation as a measure instead.
User | Count |
---|---|
124 | |
108 | |
99 | |
62 | |
62 |
User | Count |
---|---|
137 | |
115 | |
102 | |
71 | |
61 |