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! Get ahead of the game and start preparing now! Learn more
I have Date and Feature coming from a source and need to add a Cumulative row count until that date and for that feature
I added sample values for the cumulative count
If I only have one feature , the following formula gives the count fine
CumulativeCount = CALCULATE(COUNTROWS(Registrations), FILTER (ALL(Registrations), [ApprovedDate] <= MAX([ApprovedDate])))
How to add one more filter to count only rows of Feature value in the current row context?
Solved! Go to Solution.
ALLEXCEPT helps in doing such calculations for sub categories.
Try this
CumulativeCount =
CALCULATE (
COUNTROWS ( Registrations ),
FILTER (
ALLEXCEPT ( Registrations, Registrations[Feature] ),
[Date] <= MAX ( [Date] )
)
)
To achieve your requirement, you can add VALUES() at the end of your expression. Please refer:
CumulativeCount =
CALCULATE (
COUNTROWS ( Registrations ),
FILTER ( ALL ( Registrations ), [ApprovedDate] <= MAX ( [ApprovedDate] ) ),
VALUES ( Registrations[Feature] )
)
Thanks,
Xi Jin.
To achieve your requirement, you can add VALUES() at the end of your expression. Please refer:
CumulativeCount =
CALCULATE (
COUNTROWS ( Registrations ),
FILTER ( ALL ( Registrations ), [ApprovedDate] <= MAX ( [ApprovedDate] ) ),
VALUES ( Registrations[Feature] )
)
Thanks,
Xi Jin.
ALLEXCEPT helps in doing such calculations for sub categories.
Try this
CumulativeCount =
CALCULATE (
COUNTROWS ( Registrations ),
FILTER (
ALLEXCEPT ( Registrations, Registrations[Feature] ),
[Date] <= MAX ( [Date] )
)
)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 69 | |
| 46 | |
| 44 | |
| 28 | |
| 19 |
| User | Count |
|---|---|
| 199 | |
| 129 | |
| 102 | |
| 69 | |
| 55 |