This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
A very dumb question.
Why PowerBI couldn't return order dates when my condition is true?
Solved! Go to Solution.
The 'IF' statement has two possible outcomes. They must both be of the same data type.
Hey,
this is due to the fact, IF can not return values of different data types, your statement will return a date (Ordered Date) or a string "".
You can use this instead:
Column = IF('Table1'[CheckCondition] = "Calendar" , 'Table1'[Ordered Date] , BLANK())
Instead of returning an empty string "", return BLANK(), if the IF condition equals to FALSE
Hopefully this is what you are looking for.
Regards,
Tom
Hey,
this is due to the fact, IF can not return values of different data types, your statement will return a date (Ordered Date) or a string "".
You can use this instead:
Column = IF('Table1'[CheckCondition] = "Calendar" , 'Table1'[Ordered Date] , BLANK())
Instead of returning an empty string "", return BLANK(), if the IF condition equals to FALSE
Hopefully this is what you are looking for.
Regards,
Tom
yes, it's what I was looking for.
What is the expression used to caclulate the SLArule.Calendar/Business column?
The 'IF' statement has two possible outcomes. They must both be of the same data type.
Awesome and interesting.
I learned that using BLANK(), instead of "" fixes the issue.
it's not output from an expression. it's just fixed text.
thanks for your help.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 31 | |
| 26 | |
| 23 | |
| 22 | |
| 15 |
| User | Count |
|---|---|
| 62 | |
| 47 | |
| 28 | |
| 24 | |
| 21 |