Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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"
)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.