Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago

Need help in DAX

Hi,

 

I have below table. I don't have Previous Day column and wanted create Total Value column as per the below table. Is it possible to get that. The first date in a month I wanted to pass as zero for Previous day value. And the same should applies if I have multiple Sr No's (Product Line, Product Line 2 and so on....

 

Any help in DAX?

 

Sr NoDateABCPrevious Day ValueTotal Value
Product Line 101-Jan-24203040020+30+40+0 (This zero value is default at the starting day of a month . So total value should be 90
Product Line 102-Jan-2413435 13+43+5+90 (This 90 value is nothing but previous day). So total value should have 151
Product Line 103-Jan-24183022 18+30+22+151 (This 151 value is nothing but previous day value. So total value should be  221

11 Replies

  • Unpivot your A, B and C columns to bring them into a usable format. Then use a "Running Total"  Quick measure.

  • Anonymous's avatar
    Anonymous
    Not applicable

    No, data needed in that format only. thanks

    • lbendlin's avatar
      lbendlin
      Super User

      Create a calculated column that adds up A, B and C. Create a running total quick measure over that column 

      • Anonymous's avatar
        Anonymous
        Not applicable

        No, as I mentioned need day wise that calculated column Total Value.