Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213819

Cumulative Sales

$
0
0

I want to write a measure which filters the data by multiple columns.

 

I want a cumulative total for a product over the course of twelve weeks and then I want to have a measure which shows the performance of an individual sales person to match against the performance of the whole team.

 

Week NumberProduct Value Sales Person
1Apples £                       10Annie
1Apples £                       10Jon
1Apples £                       10Tom
1Apples £                       10Jon
1Apples £                       10Annie
1Apples £                       10Jon
1Apples £                       10Dave
1Apples £                       10Tom
1Apples £                       10Jon
1Apples £                       10Annie
2Apples £                       10Dave
2Apples £                       10Annie
2Apples £                       10Tom

 

I use the following dax formula to get the cumulative total

 

= CALCULATE(SUM('table'[value]) , FILTER(ALL('table'),table[week number]<=MAX('table'[week number]), VALUE('table'[Product]))

 

what do I need to add to just get the cumulative sales for Dave?

 

 

 


Viewing all articles
Browse latest Browse all 213819

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>