This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
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 example would be Installs. A row with a timestamp is added to the Installs table everytime someone installs an app (suprisingly). So...
Mon 6 installs
Tue 10 installs
Wed 20 installs
would give Installs to date as...
Mon 6
Tues 16
Wed 36
Any ideas ?
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
Appologies for my ignorance but I don't see any running count on that page.
Now it's there again, somehow I managed to not use the measure in the table viz
Still can't see it
It seems there have been some upload issues, please try again
I was being stupid ! Couldn't understand the numbers until I noticed that you were counting rows by year aswell, so it didn't look like I expected. All is good now apart from when I try to apply it to my data I get..
"Function 'CALCULATE' is not allowed as part of calculated column DAX expressions on DirectQuery models."
Any ideas ?
Hi @maf,
Since you were fetching data in Direct Query mode, you should create a measure rather than calculated column. The error was prompted because you created a column using above formula in Direct Query mode.
Regards,
Yuliana Gu
Can you explain what I should put in the messure to get the same results please ?
Hi @maf,
You can refer to the DAX formula provided in TomMartens's first post.
Regards,
Yuliana Gu
I've tried using that in a measure but get
Function 'FILTER' is not supported in this context in DirectQuery mode. 😞
Hey,
check the following option
and turn it on, please be aware, that some calculations can slow down your query performance.
Check out the May 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 |
|---|---|
| 31 | |
| 26 | |
| 25 | |
| 22 | |
| 13 |
| User | Count |
|---|---|
| 58 | |
| 50 | |
| 26 | |
| 20 | |
| 19 |