Forum Discussion
maf
9 years agoRegular Visitor
Running Count
I've titled this Running Count rather than Running Total as I've seen plenty of examples that sum numerics to a given date. I'd like to count rows to a date rather than sum values. A good exa...
TomMartens
9 years agoSuper User
Hey,
here is a little example
On the page YTD Variations you will find this measure
Cumulated Count Rows =
CALCULATE(
COUNTROWS('FactWithDates'),
FILTER(
ALL('Calendar'),
'Calendar'[Date] <= MAX('FactWithDates'[Date]) &&
'Calendar'[Year] = MAX('Calendar'[Year])
)
Here just the visible rows in the current FilterContext (introduced using CALCULATE()) are counted
Hope this helps
- maf9 years agoRegular Visitor
Appologies for my ignorance but I don't see any running count on that page.
- TomMartens9 years agoSuper User
Now it's there again, somehow I managed to not use the measure in the table viz
- maf9 years agoRegular Visitor
Still can't see it