web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Power BI and CRM - problem with new custom column

(0) ShareShare
ReportReport
Posted on by

Hi All.

Today is my second work day with Power BI. And I try to create new report. I want to add the new column in AccountSet (in Power BI) with formula:

6170.Capture.PNG

But after "Ok" I get error message:

Expression error: The name 'IF' wasn't recognized.  Make sure it's spelled correctly.

I checked my expression, but I can't find error.

Please, somebody can help to me?

Thanks!

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Royal King Profile Picture
    27,686 on at

    Your formula should be

    if(Revenue.value) <300 then "Under 3 Mill." else "Over 3 mill"

  • Community Member Profile Picture
    on at

    Thanks!!! It works!

    I thought that I must use DAX References? It isn't correctly?

  • Community Member Profile Picture
    on at

    IF ( [Revenue.Value] < 3000 ; "Under 3 mill." ; "Over 3 mill." )

    Replace , by ;

  • Suggested answer
    Royal King Profile Picture
    27,686 on at

    DAX functions are same like excel but syntax is slightly different for Power BI

    Check below documentation for reference

    support.powerbi.com/.../464157-tips-and-tricks-for-creating-reports-in-power-bi-d

  • Community Member Profile Picture
    on at

    >Replace , by ;

    Not, it doesn't work.

    I get message "Token Comma expected"

  • Community Member Profile Picture
    on at

    Chitra

    Thank you very much!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans