Forum Discussion
Running Count
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
- 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
- maf9 years agoRegular Visitor
I've tried using that in a measure but get
Function 'FILTER' is not supported in this context in DirectQuery mode. :(
- TomMartens9 years agoSuper User
Hey,
check the following option
and turn it on, please be aware, that some calculations can slow down your query performance.