Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
EvertonRamone
Helper I
Helper I

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 2
v-piga-msft
Resident Rockstar
Resident 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

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.