Forum Discussion
Cumulative Total by Index
- 6 years ago
Hi CoreyP ,
This is a context problem, when you add the measure in your table since you have other columns within the visual and all of the fields belong to the same table the context changes so you need to apply the filter no only to the INDEX column but to all other columns in this case you need to redo your measure to:
Cumulative = CALCULATE ( SUM ( 'Pick sequence'[ONHAND_QTY] ); FILTER ( ALLSELECTED ( 'Pick sequence'[Pick Sequence]; 'Pick sequence'[PALLET_ID]; 'Pick sequence'[Item N.º] ); 'Pick sequence'[Pick Sequence] <= MAX ( 'Pick sequence'[Pick Sequence] ) ) )Check PBIX file attach I added a slicer for pallet s you can try to select different values and check that the cumulative still is calculated.
Hi BICrazy ,
Maybe you need to try the following measure:
Cumulative Churn =
SUMX (
TOPN (
MAX ( 'Ongoing & Unpaid Data Revised'[Index] ),
SUMMARIZE (
'Ongoing & Unpaid Data Revised',
'Ongoing & Unpaid Data Revised'[Index],
"PreviousChurn", [Previous Index Churn]
)
),
[PreviousChurn]
)
Be aware that without any data is difficult to know if this is the correct syntax.
Can you please share a mockup data or sample of your PBIX file. You can use a onedrive, google drive, we transfer or similar link to upload your files.
If the information is sensitive please share it trough private message.
Hi MFelix ,
Thanks for the suggestion. This measure didn't get the cumulative totals. This is what I got:
I'm basically looking to sum the Previous Index Churn e.g.
6982 + 5876 = 12858
12858 + 3664 = 16522
16522 + 2623 = 19145
19145 + 2203 = 21348 .....and so forth
- BICrazy5 years agoHelper II
Hi MFelix - sent you a pm with a link to onedrive, which contains the mockup
- MFelix5 years agoSuper User
Hi BICrazy ,
You should use the following measure:
Cumulative_Churn_1 = SUMX ( FILTER ( SUMMARIZE ( ALL ( 'Ongoing & Unpaid Data Revised'[Index] ), 'Ongoing & Unpaid Data Revised'[Index], "@IndexChurn", [Previous Index Churn] ), 'Ongoing & Unpaid Data Revised'[Index] <= MAX ( 'Ongoing & Unpaid Data Revised'[Index] ) ), [@IndexChurn] )