I'm trying to calculate a cumulative value of profit (win-stake) based on a very simple table and after reading a couple articles and seeing more or less the same formula working, I'm left puzzled by the issue with mine.
Sorry, for some reason I was unable to insert pictures directly.
I'd appreciate any help!
Solved! Go to Solution.
It did not allow me to use max(date) in a true/false expression the first time I tried, I'm not sure why. But anyway it is working now.
@mafaber filter context is not passed to the variables, so two variables your created Win and Stake, put those as separate measures, and then use it in your calculate function.
BTW, what was the reason you couldn't post the images, share the issue and we can raise the issue with the admin of the forum.
I did not know that about the variables, thanks! 🙂
But still not working, it's not affected by the date now.
Date column is from the dim_calendar table, the rest is from the fact table.
[win sum] measure ([win_stake] is the same logic):
This is a must watch for a message from Power BI!
Click here to read more about the December 2020 Updates!
Click here to read the latest blog and learn more about contributing to the Power BI blog!
Mark your calendars and join us for our next Power BI Dev Camp!.