Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello
I want to create a cumulative sum but the ammount that I´m intended to use is a calculated field. I´m not wokinr with date because I just want to sum the ammounts once they are sorted in descendent order. "Participación Total" is the field used to sort the data, and I want to create a cumulative sum for the field "MAT" all the date are calcualted fields.
Hello Yilong
The problem that I have is that the measure [MAT] is a calculated field is not part of the table, so I tried to calculate a cummulative sum of a calculated field. This is the expression that I used to calculated the MAT:
Hi @claudirnava ,
Maybe I think you can try this DAX code.
Cumulative MAT =
CALCULATE(
SUM('YourTableName'[MAT]),
FILTER(
ALLSELECTED('YourTableName'),
'YourTableName'[Participación Total] >= MIN('YourTableName'[Participación Total])
)
)
This measure will calculate the running total of “MAT” for each row, considering all previous rows with a higher or equal value of “Participación Total”.
If it does not help you, you can provide more details and .pbix file for me.
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous
Hello Yilong
The problem that I have is that the measure [MAT] is a calculated field is not part of the table, so I tried to calculate a cummulative sum of a calculated field. This is the expression that I used to calculated the MAT:
Hi @claudirnava ,
I think you can change your DAX code.
Cumulative Participacion Total =
CALCULATE(
SUMX(
FILTER(
ALLSELECTED(calendario[Date]),
calendario[Date] <= MAX(calendario[Date])
),
[Participacion Total]
)
)
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 5 | |
| 5 |
| User | Count |
|---|---|
| 24 | |
| 11 | |
| 9 | |
| 9 | |
| 8 |