Forum Discussion
RonaldvdH
5 years agoPost Patron
Line graph question
Goodmorning guys, i need your help with a simple question I want a line graph that displays the cumulative value of a certain value We register on a daily basis the number of new contracts that ...
- 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.
RonaldvdH
5 years agoPost Patron
What i did is the following, i have a table with adressen and a date.
I use a formula to calculate the date into a week by using this formula
if [actief aangemeld] = null then ""
else
Text.From(Date.Year([actief aangemeld])) & "-" & Text.PadStart(Text.From(Date.WeekOfYear([actief aangemeld])), 2, "0")
And then the formula doesn't work because it's a string but i always use the format YYYY-WW