Forum Discussion
IF function doesn't work
Seems like . or , or ; issue
Try like
11 = var q = 0.7
RETURN IF( 'table'[Column] > q, "1", "2" )
OR
11 = var q = 0,7
RETURN IF( 'table'[Column] > q; "1"; "2" )
amitchandak Hi!
I've tried this, but it didn't help 😞
I had simmilar error in my Calendar function and resolve this issue by adding spaces before coma in the formula:
- Katerina6 years agoHelper I
very strange, but this formula is work:
11 =var q = VALUE("0,7")RETURNIF('Продукты'[Заполненность склада]>q ,"1" ,"2")But it is not a good idea to add Value function allways when I need to work with Decimal 😞- amitchandak6 years agoSuper User
Under file - >Option and Setting -> Option -> Regional setting
Check that. You can not have, at both place
- Katerina6 years agoHelper I
Application language and Model language - English (United States)
- amitchandak6 years agoSuper User
This was
11 = var q = 0,7
RETURN IF( 'table'[Column] > q, "1", "2" )have tried like
11 = var q = 0.7
RETURN IF( 'table'[Column] > q, "1", "2" )- Katerina6 years agoHelper I
My Power BI Desktop does'n accept 0.7
If I put with dot - PBI change it to comma. If I again put dot - PBI mark it with red.
I use comma in PBI. For an example in the Column with decimal I see 6,0 etc.