Forum Discussion
Anonymous
9 years agoNot applicable
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...
- 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 - Anonymous9 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.
Anonymous
9 years agoNot applicable
Your formula should follow a pattern like
=IF( AND( TableName[OBJECT] = "6265", VALUE(TableName[ORG])<“699” ) || TableName[OBJECT]="6255" || AND( TableName[OBJECT]="6256", VALUE(TableName[ORG])<“699” ) || .... etc etc
Anonymous
9 years agoNot applicable
Here is the error message: