Forum Discussion
IF into formula
HI,
Hi,
I have this column in my table "Ventes" but the IF does not seem to work, it should give me 0 if Product = "CREDIT 601" or Livr_Pays = "US" but it still gives me __TauxDouanes
what is that i'm not doing correctly ????
Thank you very much for your support.
Gross$ =
- Anonymous6 years ago
John_Peter
Did you check whether there are spaces in the values, sometimes there is a space before or after the text.However, I don't see any problem with this DAX. Please provide a sample pibx file if this issue persist.
Best regards
Paul Zheng
2 Replies
- az38Community Champion
if you use create a measure, not column use SELECTEDVALE() over column name like
IF(SELECTEDAVALUE(Ventes[Product])="CREDIT 601" || SELECTEDAVALUE(Ventes[Livr_Pays])="US", 0, __TauxDouane)) - AnonymousNot applicable
John_Peter
Did you check whether there are spaces in the values, sometimes there is a space before or after the text.However, I don't see any problem with this DAX. Please provide a sample pibx file if this issue persist.
Best regards
Paul Zheng