Forum Discussion
Cumulative not working with sumx
- Anonymous5 years ago
Hi Vamshi2020
I think you want to calculated the sum for each member id.
Due to I don't know your data model, I build a sample to have a test.
Sample:
I think you want to get Sum for ID 1 = 2, Sum for ID 2 =1, Sum for ID 3 =2.
Measure:
Cumulative = SUMX(FILTER(ALL('Table'),'Table'[ID]=MAX('Table'[ID])),'Table'[Value])Result is as below:
Calculated column:
Sum value for each id = SUMX(FILTER('Table','Table'[ID]=EARLIER('Table'[ID])),'Table'[Value])Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Vamshi2020
I think you want to calculated the sum for each member id.
Due to I don't know your data model, I build a sample to have a test.
Sample:
I think you want to get Sum for ID 1 = 2, Sum for ID 2 =1, Sum for ID 3 =2.
Measure:
Cumulative = SUMX(FILTER(ALL('Table'),'Table'[ID]=MAX('Table'[ID])),'Table'[Value])
Result is as below:
Calculated column:
Sum value for each id = SUMX(FILTER('Table','Table'[ID]=EARLIER('Table'[ID])),'Table'[Value])
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.