This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi,
I have this cumulative measure which works ok:
Cumulative Change Notes =
CALCULATE (
COUNTA ( Company_Documents[ID] ),
FILTER (
ALLSELECTED ( Company_Documents ),
Company_Documents[DOC_CREATION_DATE]
<= MAX ( Company_Documents[DOC_CREATION_DATE] )
)
)
However i'd like to limit the result by adding an additional criteria to the filter (starts &&)
Cumulative Change Notes =
CALCULATE (
COUNTA ( Company_Documents[ID] ),
FILTER (
ALLSELECTED ( Company_Documents ),
Company_Documents[DOC_CREATION_DATE]
<= MAX ( Company_Documents[DOC_CREATION_DATE] )
&& Company_Documents[Document Class] = "Change Note"
)
)
I must have the incorrect syntax as there are no records returned despite records being available which match the criteria.
Can anyone give me a pointer on where i've gone wrong when adding the additional filter criteria?
Thanks,
Richard
Solved! Go to Solution.
Hi @RichardJ
Try this.
Cumulative Change Notes =
VAR __maxCreationDate = MAX ( Company_Documents[DOC_CREATION_DATE] )
RETURN
CALCULATE (
COUNTA ( Company_Documents[ID] ),
ALLSELECTED ( Company_Documents ),
Company_Documents[DOC_CREATION_DATE] <= __maxCreationDate,
Company_Documents[Document Class] = "Change Note"
)
Hi @RichardJ
Try this instead, if it does not work consider creating a data sample so we can test and apply formulas.
Hi @RichardJ
Try this.
Cumulative Change Notes =
VAR __maxCreationDate = MAX ( Company_Documents[DOC_CREATION_DATE] )
RETURN
CALCULATE (
COUNTA ( Company_Documents[ID] ),
ALLSELECTED ( Company_Documents ),
Company_Documents[DOC_CREATION_DATE] <= __maxCreationDate,
Company_Documents[Document Class] = "Change Note"
)
@Mariusz Many Thanks for the idea and the quick reply.
This works perfectly.
Initially I didn't think it had worked as I wasn't giving it enough time to calculate (circa 5 seconds) the response.
Thanks again,
Richard
Hi @RichardJ
Try this instead, if it does not work consider creating a data sample so we can test and apply formulas.
@Mariusz - The linked file shows the formulas you provided working. perfectly.
I had to roll back my actual file (not this extract) to get it working properly as it had become corrupted in some way.
Hopefully the attached working example will help someone in future.
Thanks again @Mariusz - getting a solution for this made my day.
Cheers,
Richard
Cumulative Total, then broken down cumulative sub sections
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 30 | |
| 24 | |
| 23 | |
| 17 | |
| 15 |
| User | Count |
|---|---|
| 63 | |
| 36 | |
| 30 | |
| 22 | |
| 22 |