Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi All
I've found roundabout versions of this which I've tried but they don't seem to yield the results I need and I think it's (again) because of my lack of knowledge of when to use which functions
What I'm trying to do is - If column A contains 1 or 2 THEN "Unhappy", ELSE IF column A contains 3 THEN "Neither Happy nor Unhappy" ELSE "Happy"... 4 & 5 would be happy but I assumed that once all other criterion had been met the final else would fill in the remaining values
Thanks for any help
Solved! Go to Solution.
Hi @Daniel_B
try SWITCH statement like
= SWITCH(TRUE(),
[Column A] = 1 || [Column A] = 2, "Unhappy",
[Column A] = 3, "Neither Happy nor Unhappy",
[Column A] = 4 || [Column A] = 5, "would be happy",
"Happy"
)
and you can scale it as you wish
do not hesitate to give a kudo to useful posts and mark solutions as solution
Hi @Daniel_B
try SWITCH statement like
= SWITCH(TRUE(),
[Column A] = 1 || [Column A] = 2, "Unhappy",
[Column A] = 3, "Neither Happy nor Unhappy",
[Column A] = 4 || [Column A] = 5, "would be happy",
"Happy"
)
and you can scale it as you wish
do not hesitate to give a kudo to useful posts and mark solutions as solution
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
66 | |
34 | |
25 | |
22 |
User | Count |
---|---|
97 | |
96 | |
58 | |
45 | |
42 |