Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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] ) ) )
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
71 | |
67 | |
51 | |
39 | |
26 |
User | Count |
---|---|
87 | |
54 | |
45 | |
40 | |
36 |