Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi everyone!
I have a table of clients with profit on them. Using this table, I need to calculate the cumulative effect of profit by cohort and day since registration within the cohort.
Now I use this formula to calculate the cumulative effect:
cumulative =
VAR _indx='DBClient'[days_since_register]
RETURN
CALCULATE(SUM(DBClient[gross_profit]),
FILTER(DBClient, DBClient[days_since_register]=_indx)
)
but it does not suit me because it is calculated only within the day, without taking into account the cohort.
Please tell me how can I calculate the cumulative effect by cohort and day?
Thank you in advance!
Solved! Go to Solution.
Hi, @SErgey-kuznetso
Modify your formula as below:
cumulative =
VAR _indx = 'DBClient'[days_since_register]
VAR _cohort = 'DBClient'[cohort]
RETURN
CALCULATE (
SUM ( DBClient[gross_profit] ),
FILTER (
DBClient,
DBClient[days_since_register] = _indx
&& DBClient[cohort] = _cohort
)
)
Best Regards,
Community Support Team _ Eason
Hi, @SErgey-kuznetso
Modify your formula as below:
cumulative =
VAR _indx = 'DBClient'[days_since_register]
VAR _cohort = 'DBClient'[cohort]
RETURN
CALCULATE (
SUM ( DBClient[gross_profit] ),
FILTER (
DBClient,
DBClient[days_since_register] = _indx
&& DBClient[cohort] = _cohort
)
)
Best Regards,
Community Support Team _ Eason
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 103 | |
| 80 | |
| 62 | |
| 50 | |
| 45 |