Forum Discussion
Running Total Until TODAY on the Graph
I would like to show cumulative values just until today (or until this month, both okay) but the running total line keeps goind until the max date(end of graph) of date query. How can I stop the line on today?
7 Replies
- vanessafvg
Community Champion
Anonymous are you able to share your file?
- AnonymousNot applicable
vanessafvg I am sorry I cannot share the file because of confidentiality reason. (lots of confidential data included within) I also cannot seperate this page because there are lots of queries and relationship between tables and pages.
- vanessafvg
Community Champion
Anonymous
cant really understand your code but you rpobably need to do something like this
measure =
CALCULATE (
SUM ( Transactions[value] ),
FILTER ( ALL ( 'Date'[Date] ), 'Date'[Date] <= TODAY () )
)
- v-jiascu-msft
Microsoft Employee
Hi Anonymous ,
Is the 'Tarih $ablon' the Date table? Where are the dates in the X-axis from? Please try to remove ALL from ALL('Tarih $ablon').
Best Regards,
- AnonymousNot applicable
Hi v-jiascu-msft ,
Yes, 'Tarih Şablon' is the date table used in all x-axes throughout the date based graphs (there are many in the report) however I only have this issue on this graph. I tried what you said (removing ALL from 'Tarih Şablon') but it took the end of the value line to today but the sum did not work this time. The values are much smaller than the sum of the related field. A screenshot is here for you to investigate:
- MauroBote
Helper I
Hi there.
Try writing this at the beginning of your code:
IF(MAX(Tarin $ablon[Tarin])>TODAY();"";...)... = your code