Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hello All,
I am struggling with getting cumulative totals of a measure I created under "GP per WR"
I basically want them to all add up to the previous periods going forward and the closest I got was with this formula which doesn't return correct results:
Any help would be appreciated
Solved! Go to Solution.
Ah, this does make things more clear.
[GP per WR] appears to be a ratio. Thus, the cumulative total is more like a cumulative average than a cumulative sum.
You can get the cumulative sum by iterating over the periodNumber along these lines
SUMX (
FILTER (
ALL ( FactPeoplePerPeriod[periodNumber] ),
FactPeoplePerPeriod[periodNumber] <= MAX ( FactPeoplePerPeriod[periodNumber] )
),
[GP per WR]
)
but I'd take a minute to think about what this calculation actually means and how to interpret the numbers you get since summing ratios often doesn't make much sense (I don't know if it does in your case or not).
What results does your attempt give?
Hi - Sorry left that out. Here is the results
Ah, this does make things more clear.
[GP per WR] appears to be a ratio. Thus, the cumulative total is more like a cumulative average than a cumulative sum.
You can get the cumulative sum by iterating over the periodNumber along these lines
SUMX (
FILTER (
ALL ( FactPeoplePerPeriod[periodNumber] ),
FactPeoplePerPeriod[periodNumber] <= MAX ( FactPeoplePerPeriod[periodNumber] )
),
[GP per WR]
)
but I'd take a minute to think about what this calculation actually means and how to interpret the numbers you get since summing ratios often doesn't make much sense (I don't know if it does in your case or not).
I have the problem that I want to make a cumulative sum of a measure, but of different SKU's, without taking into account dates.
What would be the solution using the same data, but if the "periodNumber" column, instead of being numbered from 1 to 17, were 17 different SKU's with different numbers and letters?
That worked beautifully. Thank you so much for your help
User | Count |
---|---|
130 | |
108 | |
101 | |
67 | |
62 |
User | Count |
---|---|
137 | |
115 | |
102 | |
71 | |
61 |