Forum Discussion
damilolaA
10 months agoRegular Visitor
If Statement Calculated Column Returning Incorrectly
Hello everyone, Can someone please explain why the calculated column returns false instead of blank when the qty is between 4 and 7? Thank you.
- 10 months ago
Also, blank= false when converting data type from text to true/false.
So if you have this:
then convert the data type to true/false, everything is false:
djurecic
Super User
10 months agoAlso, blank= false when converting data type from text to true/false.
So if you have this:
then convert the data type to true/false, everything is false:
- damilolaA10 months agoRegular Visitor
Right, so if the column is a boolean data type, then blank() is treated as false because it's only two values (True/False). By having false() as one of the results of the if statement, this makes PowerBI think that the column is a boolean data type. Thank you for your help!