Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
9 years ago
Solved

DAX FUNCTION

I have a formula from excel and it really works and produces the output needed. However I need to convert this formula into Dax and use it in PowerBI. I have tried both || and && and its still not wo...
  • v-huizhn-msft's avatar
    v-huizhn-msft
    9 years ago

    Hi Anonymous,

    You use the VALUE function, which converts a text string that represents a number to a number. For example, VALUE("3") returns number 3.  What's the type of ORG column? It is text like "32", then VALUE(ORG) returns number type, which is nou used to compare with text type, like VALUE(ORG)<“699”. Mybe you can change it to VALUE(ORG)<VALUE(“699”), and also mix corresponding arguments in Anonymous posted formula using similar way. Please try and check if it work fine.

    Best Regards,
    Angelia

  • Anonymous's avatar
    Anonymous
    9 years ago

    You need to indent and format your code so you can read it. You have the wrong number of parentheses in the wrong places.