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
It seems there have been some upload issues, please try again
maf
9 years agoRegular Visitor
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 ?
- v-yulgu-msft9 years agoMicrosoft Employee
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- maf9 years agoRegular Visitor
Can you explain what I should put in the messure to get the same results please ?
- v-yulgu-msft9 years agoMicrosoft Employee