Forum Discussion
seanpratt
Helper III
3 years agoYTD Total is Slightly Off
Good morning, I've noticed an error in my running total (column 'Measure'). I'm thinking it's easy but having some problems tinkering with it. I want to simply add the totals in [% Turnover] (this ...
- Anonymous3 years ago
Hi seanpratt ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
(2) We can create a calculated column.
Year = YEAR('Table'[Date])Quarter = QUARTER('Table'[Date])(3) We can create a measure.
Measure = CALCULATE([% Turnover],'Table'[Quarter]<=SELECTEDVALUE('Table'[Quarter]))(3) Then the result is as follows.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Shaurya
Memorable Member
3 years agoHi seanpratt,
You can use:
Measure = CALCULATE([% Turnover],FILTER(ALL('Table'),'Table'[Quarter]<=MAX('Table'[Quarter])))
Works for you? Mark this post as a solution if it does!
Check out this blog of mine: How to Export Telemetry Data from Azure IoT Central into Power BI
seanpratt
Helper III
3 years agoUnfortunately that did not work. It actually kept a running count into the following year which is not ideal.