Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi all,
I'm trying to do a revenue forcast using a dataset that contains the following columns:
Client ID Program enroll Start date End date Instalment amt Instalment frequency Daily revenue (calculated based on instalment amt and frequency
And a date table generated from Calendarauto
And below is a measure I used to calculate the daily total from 2021 onward
Daily revenue total =
However, as I try to get the culumulative total of each year (say 2021), this measure doesn't seem to work with it... What has gone wrong?
Any help will be greatly appreciated. Thank you.
Diana
Solved! Go to Solution.
Hi @DianaT ,
Try the following formula:
Measure =
CALCULATE(
SUM('AF DESIGNATION FORECAST'[Daily revenue]),
FILTER(
'AF DESIGNATION FORECAST',
'AF DESIGNATION FORECAST'[End date] < MAX('Date'[Date])
&& YEAR('AF DESIGNATION FORECAST'[End date]) = MIN('Date'[Year])
)
) + [Daily revenue total]
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @DianaT ,
Try the following formula:
Measure =
CALCULATE(
SUM('AF DESIGNATION FORECAST'[Daily revenue]),
FILTER(
'AF DESIGNATION FORECAST',
'AF DESIGNATION FORECAST'[End date] < MAX('Date'[Date])
&& YEAR('AF DESIGNATION FORECAST'[End date]) = MIN('Date'[Year])
)
) + [Daily revenue total]
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
94 | |
82 | |
66 | |
58 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |