cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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 IV
Super User IV

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
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors