Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago

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

    • Anonymous's avatar
      Anonymous
      Not 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's avatar
        vanessafvg
        Icon for Community Champion rankCommunity 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's avatar
    v-jiascu-msft
    Icon for Microsoft Employee rankMicrosoft 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,

    • Anonymous's avatar
      Anonymous
      Not 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: 

       

  • Hi there.

    Try writing this at the beginning of your code:

    IF(MAX(Tarin $ablon[Tarin])>TODAY();"";...)
     
    ... = your code