Forum Discussion
Some dax functions does not work on PBRS
- 8 years ago
Hi dagurkuden,
I got information that unfortunately we do not have any information on road map to consider near future. I would request to create comment on forum https://ideas.powerbi.com/forums/265200-power-bi , So that product team will consider the same based on priority and requirement.
Regarding the error, please double check if the Allow unrestricted measures in Direct query mode option is enabled. Also as the Values() function return in a column of unique values, please modify the measure like below:
Measure = CALCULATE(SUM('Product'[Amount]),FILTER(ALL('DateVal'),'DateVal'[DateCol] in VALUES(DateVal[DateCol])))
or
Measure 2 = CALCULATE(SUM('Product'[Amount]),ALL(DateVal),VALUES(DateVal[DateCol]))
As I tested, it can work fine both in desktop and report server.
Best Regards,
Qiuyun Yu
Hi dagurkuden,
DAX we are using are not supported(Dateadd, DATESYTD), below are list of DAX functions suppots in Direct query mode.
Best Regards,
Qiuyun Yu
hi v-qiuyu-msft
I did not try all but The "Filter " is listed but not working.
How can I be sure the list?Can you say something about a time intelligence function and others or can you give an information about road map ?
Most of our customers were using Power BI cloud ,now they are returning to on prem.We can not explain to them that some functions does not work at power bi report server.
Thank you.
- v-qiuyu-msft8 years agoCommunity Support
Hi dagurkuden,
As you can see from the document, the Filter() function is supported in the measure. Based on my test in Power BI desktop optimized for report server 2.51.4885.1423 64-bit (October 2017), create a measure like this: Measure = CALCULATE(SUM('Product'[Amount]),FILTER(ALL('Product'),'Product'[Product]="Car"))
After publish the report to report server version 14.0.600.437, the measure still work. Please update your report server version and test again with a measure.
Regarding the time intelligence functions, I will consult it internally then back update here if I get information.
Best Regards,
Qiuyun Yu- dagurkuden8 years agoFrequent Visitor
hi v-qiuyu-msft
You are right that filter function is working.
But when I associated this with a bit of time data, I am getting this error
- v-qiuyu-msft8 years agoCommunity Support
Hi dagurkuden,
I got information that unfortunately we do not have any information on road map to consider near future. I would request to create comment on forum https://ideas.powerbi.com/forums/265200-power-bi , So that product team will consider the same based on priority and requirement.
Regarding the error, please double check if the Allow unrestricted measures in Direct query mode option is enabled. Also as the Values() function return in a column of unique values, please modify the measure like below:
Measure = CALCULATE(SUM('Product'[Amount]),FILTER(ALL('DateVal'),'DateVal'[DateCol] in VALUES(DateVal[DateCol])))
or
Measure 2 = CALCULATE(SUM('Product'[Amount]),ALL(DateVal),VALUES(DateVal[DateCol]))
As I tested, it can work fine both in desktop and report server.
Best Regards,
Qiuyun Yu