This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Dear
I have a table consisting of the production date and the fault.
How to create a Result column in Power BI?
If "yes" in the fault column, the result is: "bad".
If in the fault column is "no" and in the date column: " -", the result: "no exhibit".
If there is "no" in the fault column and there is a date in the "date" column, the result is: "micro".
If there is no information in the fault column, the result: "lack of information".
I got a little lost in it 😞
Thank you in advance for your help.
Solved! Go to Solution.
@ewelinag17 - Use SWITCH(TRUE()...) like this:
result =
SWITCH(TRUE(),
[fault] = "yes","bad",
[fault] = "no" && [date of production] = "-","no exhibit",
[fault] = "no","micro",
"lack of information"
)
@ewelinag17 - Use SWITCH(TRUE()...) like this:
result =
SWITCH(TRUE(),
[fault] = "yes","bad",
[fault] = "no" && [date of production] = "-","no exhibit",
[fault] = "no","micro",
"lack of information"
)
Check out the April 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.