Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago

Cumulative Totals

I have a reporting requirement to produce

  • MTD (Total logged tickets)
  • MTD (Total Resolved Tickets
  • MTD Cumulative (**bleep** open tickets) –  defined as total logged minus total resolved+ previous **bleep** open tickets but only for the previous month not the entire set

I can produce the first two using TotalMTD, however the MTD **bleep** open tickets is difficult as if I set this to the standard cumulative formula it gives me cumulative of the total not limited to just the previous month  and the visual needs to show the year or whatever 


MTD Cumulative = calculate([MTD Diff Log Resolve],FILTER(ALLSELECTED (Ticket),([Raised on Date] <= MAX (Ticket[Raised on Date]))),FILTER(ALLSELECTED (Ticket),([ResolutionDate] <= MAX (Ticket[ResolutionDate]))))

 

2 Replies

  • v-ljerr-msft's avatar
    v-ljerr-msft
    Icon for Microsoft Employee rankMicrosoft Employee

    Hi Anonymous,

     

    Could you post your table structures(including the relationships and all the current measures you're using) with some sample/mock data and the expected result, so that we can better assist on this issue? It's even better to share a sample pbix file which can reproduce the issue. You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading. :smileyhappy:

     

    Regards

    • Anonymous's avatar
      Anonymous
      Not applicable

      thanks for responding. I have a table X which holds my logged date and resolved date and I created a standard Calendar table with the date dimensions reltaed to these dates..

      Then I created measures

      • MTD (Total logged tickets) = TotalMTD(count(,Table[field]), MyDateDim)
      • MTD (Total Resolved Tickets) = same as above with resolved field
      • MTD Cumulative (Cumulative open tickets) –  defined as total logged minus total resolved+ previous **bleep** open tickets but only for the previous month not the entire set

      The problem is with the final measure I don’t know how to calculate it so it only returns the cumulative of the previous month not the entire dataset this is my result. What they want is for Jan MTD Cumulative to be 9 Feb to be 12 then March to be 9 as it should not include Jan. My calculation keeps on totalling the cumulative.