Forum Discussion
Handle null values in custom column
- 8 years ago
sorry there was typo in my formula, it suppose to be then instead of the
if [ColumnA] = null or [ColumnB] = null then null else if [ColumnA] < [ColumnB] then 0 else [ColumnA] - [ColumnB]
I've searched for different ways to do IF or Case statements in power BI and keep running across folks using code simillar to the one in this thred.
i.e. IF logic THEN true ELSE false
However when I try to use this sort of function in Power BI now it requires for the IF statement to being with " IF( " and further makes it look just like it would in standard excel.
i.e. IF(logic,[true],[false])
I'm I missing something here? If there a certain setting in power bi that must be checked to adjust the functions? Was there a recent update?
Emilio
- TomMartens7 years agoSuper User
Hey eizquierdo,
this discussion has been about "if condition then something else somethingdifferent" this is the syntax in the M language used by PowerQuery, you mentioned the more EXCEL like IF(condition, trueresult, falseresult) syntax used in DAX.
Regards,
Tom