Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Here is my Data
Date | Count | |
Dan at abc.xyz | 7/1/2020 | 18 |
Roxy at abc.xyz | 7/1/2020 | 20 |
Sam at abc.xyz | 7/1/2020 | 22 |
Dan at abc.xyz | 8/1/2020 | 30 |
Roxy at abc.xyz | 8/1/2020 | 40 |
Sam at abc.xyz | 8/1/2020 | 50 |
I am trying to calculate this in POWERBI
dan | 48 | 48 |
roxy | 60 | 108 |
sam | 72 | 180 |
I am able to get the counts to work easily by calculation for cumulative is not working
Calculate(sum([count]), filter(all(table),table[email]<=max(table[email])))
Solved! Go to Solution.
Hi @MEGHAMONTY ,
Please check:
cumulative count =
CALCULATE (
SUM ( 'Table'[Count] ),
FILTER ( ALL ( 'Table' ), 'Table'[Email] <= MAX ( 'Table'[Email] ) )
)
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @MEGHAMONTY ,
Please check:
cumulative count =
CALCULATE (
SUM ( 'Table'[Count] ),
FILTER ( ALL ( 'Table' ), 'Table'[Email] <= MAX ( 'Table'[Email] ) )
)
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
_sumCount:= SUMX('Table 1','Table 1'[Count])
_cumulativeTotal:=
VAR _1 = MAX('Table 1'[Date])
VAR _2 = CALCULATE([_sumCount],ALL('Table 1'[Date]),'Table 1'[Date]<=_1)
RETURN _2
@MEGHAMONTYdid you try the above ?
User | Count |
---|---|
139 | |
113 | |
103 | |
73 | |
63 |
User | Count |
---|---|
136 | |
125 | |
107 | |
70 | |
61 |