Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I am trying to use the IN function is analysis services tabular, but it is returning me an error. I tried the same in my co-worker machine and it is working perfectly. I have already uninstalled my data tools 2017 and 2015 and installed again. Now I have only SSDT 2015 and having this problem.
TestMeasureIN:= CALCULATE( COUNTROWS(DimDate), DimDate[MonthName] IN {"may", "july"} )
SEMANTIC ERROR: THE SYNTAX FOR 'IN' IS INCORRECT
Hi @EvertonRamone,
By my tests, the syntax of your formula should be right which works as expected in Power BI.
I'm afraid that the SSDT 2015 may not support IN function. Please try with the latest version.
Best Regards,
Cherry
I belive you need to be using analysis services 2017 or later to have the IN function.
User | Count |
---|---|
128 | |
108 | |
99 | |
65 | |
62 |
User | Count |
---|---|
136 | |
113 | |
102 | |
71 | |
60 |