Forum Discussion
Line graph question
- 5 years ago
Hi, RonaldvdH
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
You may create a measure as below.
Result = CALCULATE( SUM('Table'[Value]), FILTER( ALL('Table'), [YearWeek]<=MAX('Table'[YearWeek]) ) )Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
have you tried adding a Quick Measure - Running total? Usually it works fine.
Or you can create a measure on your own as well:
calculate( SUM( YourColumn ), Filter (all ( YourTable[DateColumn] ), YourTable[DateColumn] <= MAX(YourTable[DateColumn]) )
Or you can do the same in Power Query:
https://www.youtube.com/watch?v=uX3_dnb5on0
- RonaldvdH5 years agoPost Patron
Your formula doesn't seem to work because i used a formula to convert my date to a week using this formula in the advanced editor:
if [actief aangemeld] = null then ""
else
Text.From(Date.Year([actief aangemeld])) & "-" & Text.PadStart(Text.From(Date.WeekOfYear([actief aangemeld])), 2, "0")The result is a string and therefor it doesn't work i think