Forum Discussion

EvertonRamone's avatar
8 years ago

SSAS Tabular incorrect sintax but it is correct

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

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    I belive you need to be using analysis services 2017 or later to have the IN function. 

  • v-piga-msft's avatar
    v-piga-msft
    Icon for Resident Rockstar rankResident Rockstar

    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