Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Cummulative Value field

Hi everyone,

 

I have a feild from the data source that shows a cummulative value.

 

When I use this to create a table chart, the total shows a summed value of the field (2110) instead of the last cummulated value (820), does anyone how how I can fix this:

 

DaysTotal SalesCummulative Sales
1100100
2150250
3120370
4200570
5250820
Total8202110 
  • @tobz

    You can use this measure instead of the Cumulative field

    Cumm New = 
    IF( HASONEVALUE(Table1[Days]), SUM(Table1[Cummulative Sales] ) , SUM(Table1[Total Sales]))

    Fowmy_0-1601488969758.png

    ________________________

    If my answer was helpful, consider Accepting it as the solution to help other members find it

    Click the Thumbs-Up icon if you like this answer 🙂

    Youtube Linkedin

1 Reply

  • @tobz

    You can use this measure instead of the Cumulative field

    Cumm New = 
    IF( HASONEVALUE(Table1[Days]), SUM(Table1[Cummulative Sales] ) , SUM(Table1[Total Sales]))

    Fowmy_0-1601488969758.png

    ________________________

    If my answer was helpful, consider Accepting it as the solution to help other members find it

    Click the Thumbs-Up icon if you like this answer 🙂

    Youtube Linkedin