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" )
- Katerina6 years agoHelper I
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:
Calendar= CALENDAR(DATE(2012 ,1 ,1),DATE(2019 ,12 ,31))Without extra spaces this formula didn't work.But I can't resolve the issue with IF formule 😞- 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
- 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.