Forum Discussion
calculate Running Total
- Anonymous5 years ago
Thanks Getting the average correctly . is this measure can be used for creating the running total .
- 5 years ago
Hey Anonymous ,
OK, so you want the running total over the column average. That's different to the running average.
What should happen on Januar 17?
Is January 2017 = 255+1789+247 + 1789 + 45
Or is January 2017 = 45
That was my question in the post before.
If you need any help please let me know.If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍Best regardsDenisBlog: WhatTheFact.biFollow me: twitter.com/DenSelimovic - 5 years ago
Hey Anonymous ,
here you go:
Average = VAR vMinDate = FIRSTDATE(ALL('myTable'[Date])) VAR vMaxDate = LASTDATE('myTable'[Date]) VAR vFilteredTable = FILTER(ALL('myTable'), 'myTable'[Date] >= vMinDate && 'myTable'[Date] <= vMaxDate) VAR vSummarizeTable = SUMMARIZE(vFilteredTable,'myTable'[Date], 'myTable'[Avg]) RETURN SUMX(vSummarizeTable, 'myTable'[Avg])If you need any help please let me know.If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍Best regardsDenisBlog: WhatTheFact.biFollow me: twitter.com/DenSelimovic
Hey Anonymous ,
you mean the running average?
Do you want to calculate the average from the beginning of the year to the day specified or from the beginning of all data up to the day specified?
For that you have to modify it a little, but I can do that if you tell me which of the two above you need.
- selimovd5 years ago
Most Valuable Professional
Hey Anonymous ,
OK, so you want the running total over the column average. That's different to the running average.
What should happen on Januar 17?
Is January 2017 = 255+1789+247 + 1789 + 45
Or is January 2017 = 45
That was my question in the post before.
If you need any help please let me know.If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍Best regardsDenisBlog: WhatTheFact.biFollow me: twitter.com/DenSelimovic- Anonymous5 years agoNot applicable
- selimovd5 years ago
Most Valuable Professional
Hey Anonymous ,
here you go:
Average = VAR vMinDate = FIRSTDATE(ALL('myTable'[Date])) VAR vMaxDate = LASTDATE('myTable'[Date]) VAR vFilteredTable = FILTER(ALL('myTable'), 'myTable'[Date] >= vMinDate && 'myTable'[Date] <= vMaxDate) VAR vSummarizeTable = SUMMARIZE(vFilteredTable,'myTable'[Date], 'myTable'[Avg]) RETURN SUMX(vSummarizeTable, 'myTable'[Avg])If you need any help please let me know.If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍Best regardsDenisBlog: WhatTheFact.biFollow me: twitter.com/DenSelimovic
- Ashish_Mathur5 years ago
Super User
Hi,
Share the link from where i can download your PBI file.