cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ElastBI Frequent Visitor
Frequent Visitor

IF statement -Syntax error

Hello all,

 

I have the following statement (see image)

if statement.PNG

However I get a Syntax error. I cannot see what I am doing wrong, since the same formula worked for me on another dataset.

It seems >0 is not recognized.

 

Can someone please help me out?

1 ACCEPTED SOLUTION

Accepted Solutions
ElastBI Frequent Visitor
Frequent Visitor

Re: IF statement -Syntax error

Hello all,

 

I am closing this thread since I found a work arround to solve issues, thanks for all the help.

 

View solution in original post

6 REPLIES 6
Super User
Super User

Re: IF statement -Syntax error

HI @ElastBI 

 

It looks like you are missing a "," behind "Yes") 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
Mariusz Repczynski

 

PradipMCT Regular Visitor
Regular Visitor

Re: IF statement -Syntax error

Hi @ElastBI 

 

The comma is missing before "-". 

 

Regards,

Pradip Microsoft Certified Trainer

Pradip's YouTube Channel

ElastBI Frequent Visitor
Frequent Visitor

Re: IF statement -Syntax error

Thank your for your replies. @PradipMCT and @Mariusz 

However I still get the same error

This is what I have now:

 

Vacancy check = CONCATENATEX(DISTINCT('emptyspaces-report'[Unit Ref]),IF(SUM('emptyspaces-report'[Condtional Column]) >0,"No","Yes"),"-")
 
if statement 2.PNG
 
 
 
 
PradipMCT Regular Visitor
Regular Visitor

Re: IF statement -Syntax error

@ElastBI 

 

Hope you're putting " (double quotes) and not ' (single quote twice).

 

Can you share the data file?

 

Regards,

Pradip Microsoft Certified Trainer

Pradip's YouTube Channel

ElastBI Frequent Visitor
Frequent Visitor

Re: IF statement -Syntax error

Hello @PradipMCT

 

Thank you!

I have send you the link in PM

ElastBI Frequent Visitor
Frequent Visitor

Re: IF statement -Syntax error

Hello all,

 

I am closing this thread since I found a work arround to solve issues, thanks for all the help.

 

View solution in original post

Helpful resources

Announcements
Ask Amanda Anything Q&A

Ask Amanda Anything Q&A

Learn the answers to some of the questions asked during the Amanda Triple A event.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 294 members 2,794 guests
Please welcome our newest community members: