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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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