Forum Discussion
Track realisation vs estimate per month
I have a dataset with planned sales per month and realised sales.
How can I make a measure the tracks the progress of the sales vs the planned sales? I think it's some kind of running total, but can't figure it out.
Somehow I need to find the maximum dat on which sales was made, and then see what sales was planned until that date.
- Anonymous3 years ago
Can't share the PBI as this is confidential information. But it looks like:
Date Planned Realised 1-1-2023 10 11 1-2-2023 13 1-3-2023 12 In the mean time, I think I've figured it out:
Planned till now =
VAR max_date = calculate(max(Date), Realised > 0)
return
calculate (sum(Planned), Date <= max_date)
2 Replies
- Ashish_Mathur
Super User
Hi,
Share the download link of the PBI file.
- AnonymousNot applicable
Can't share the PBI as this is confidential information. But it looks like:
Date Planned Realised 1-1-2023 10 11 1-2-2023 13 1-3-2023 12 In the mean time, I think I've figured it out:
Planned till now =
VAR max_date = calculate(max(Date), Realised > 0)
return
calculate (sum(Planned), Date <= max_date)