Forum Discussion
Cummulative measure issue
I am working cohort analysis issue i have matrix table in rows i have how many customers column, feeder collection column, go live date column, serviceable feeder. In columns i have period column that is months 0 to 10 months, in values i have measure
I have each month avergae value coming in columns 0 to 10 months, but the request is 0th + 1st month = 1st month, 1st month + 2nd month = 2nd month...... 9th month + 10th month = 10th month but i when i tried i failed like that can you help on this please. Above measures i am using by changing that i need to achieve cummulative type right now it giving 0 to 10 months individual percent but i want 0th + 1st month = 1st month like this kind of. I hope i told everything here.
3 Replies
- rajendraongole1Super User
Hi chaitanya1 - If you want to apply this cumulative logic to your existing Month/Quarter measure, you can adapt this below, slight modifications.
Month/Quarter Cumulative =
IF(
SELECTEDVALUE('Cohort Combined'[Type]) = "Month",
CALCULATE(
SUM('Cohort Combined'[TR]),
FILTER(
ALL('Cohort Combined'[Period]),
'Cohort Combined'[Period] <= SELECTEDVALUE('Cohort Combined'[Period])
)
),
CALCULATE(
SUM('Cohort Combined'[TR]),
FILTER(
ALL('Cohort Combined'[Quarter]), -- Adjust for quarters
'Cohort Combined'[Quarter] <= SELECTEDVALUE('Cohort Combined'[Quarter])
)
)
)CHeck it, still issue exist share pbix file by removing the sensitive data.
- chaitanya1Helper I
rajendraongole1 in cohort combined[type] has month and quarter values, period is separate column.
- AnonymousNot applicable
Hi chaitanya1
Please provide sample data that fully covers your issue and the expected outcome based on the sample data you provided. Please remove any sensitive data in advance.
Best Regards,
Jayleny