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!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hi, sorry for my english, i'm french.
I have a table like this and i would calculate the column "Montant cumulé". So, for each Month, the cumulative amount per Month and per N°Contrat.. Can you help me to found the DAX formule for the yellow Column plesae ?
Thanks for helping.
Solved! Go to Solution.
[Montant cumule] = var __noContrat = selectedvalue ( T[N°Contrat] ) var __currentDate = max ( T[Date] ) var __cumule = SUMX( FILTER( ALL ( T ), T[N°Contrat] = __noContrat && T[Date] <= __currentDate ), T[Montant] ) return __cumule
[Montant cumule] = var __noContrat = T[N°Contrat] var __currentDate = T[Date] var __cumule = SUMX( FILTER( T, T[N°Contrat] = __noContrat && T[Date] <= __currentDate ), T[Montant] ) return __cumule
Hi, thanks
but i have another dufficult, i have try your solution but when i have more amount in the same month with négative value, it's no good.
For exemple, with this table :
I must have for N°Contrat C002 a cumulative value of 130.
But with your formule, i have 260 :
Thank you very much for your help.
[Montant cumule] = var __noContrat = selectedvalue ( T[N°Contrat] ) var __currentDate = max ( T[Date] ) var __cumule = SUMX( FILTER( ALL ( T ), T[N°Contrat] = __noContrat && T[Date] <= __currentDate ), T[Montant] ) return __cumule
It's ok !!!
Thanks for your help ! ![]()
I'm sorry.
Can you help me ?
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 5 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 15 | |
| 14 | |
| 9 | |
| 8 | |
| 7 |