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 guys,
I want to do a cumulative sum for each category (partner_warehouse_id here) :
Here is what i did for the moment :
Solved! Go to Solution.
Hi @Anonymous
Thanks for reaching out to us.
In column dax code, please try
Nombre d'inscriptions cumulé =
CALCULATE (
SUM ( 'Nombre d''inscriptions 2'[Nombre] ),
FILTER (
ALL ( 'Nombre d''inscriptions 2' ),
'Nombre d''inscriptions 2'[partner_warehouse_id]
= EARLIER ( 'Nombre d''inscriptions 2'[partner_warehouse_id] )
&& 'Nombre d''inscriptions 2'[signup_date]
<= EARLIER ( 'Nombre d''inscriptions 2'[signup_date] )
)
)
Usually, max () is used to get the current row in measure dax code.
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
Thanks for reaching out to us.
In column dax code, please try
Nombre d'inscriptions cumulé =
CALCULATE (
SUM ( 'Nombre d''inscriptions 2'[Nombre] ),
FILTER (
ALL ( 'Nombre d''inscriptions 2' ),
'Nombre d''inscriptions 2'[partner_warehouse_id]
= EARLIER ( 'Nombre d''inscriptions 2'[partner_warehouse_id] )
&& 'Nombre d''inscriptions 2'[signup_date]
<= EARLIER ( 'Nombre d''inscriptions 2'[signup_date] )
)
)
Usually, max () is used to get the current row in measure dax code.
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , try with a small change
Nombre d'inscriptions cumulé = CALCULATE(SUM ( 'Nombre d''inscriptions 2'[Nombre] )
,FILTER(ALL('Nombre d''inscriptions 2'),'Nombre d''inscriptions 2'[partner_warehouse_id] = MAX('Nombre d''inscriptions 2'[partner_warehouse_id])
&&'Nombre d''inscriptions 2'[signup_date]<=MAX('Nombre d''inscriptions 2'[signup_date])))
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 |
|---|---|
| 7 | |
| 6 | |
| 6 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 15 | |
| 13 | |
| 13 |