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
hi all. i have a column1 having approx 5000000 rows with 29 distinct text values in it. i want to group these 29 distinct under 5 categories/groups in a new column. e.g.
values like oranges, mangoes, cherry is represented as fruits in new column.
values like car, bicycle, bus is represented as vehicle in new column.
how i can achieve this?
Solved! Go to Solution.
Hi @waqarahmadkp ,
You can update the formula of your calculated column as below:
Column =
SWITCH (
TRUE (),
[ApplicationType] IN { "Duplicate", "Duplicate (R)" }, "Dup",
"other"
)
Best Regards
@waqarahmadkp , You need to create a new column using switch
Switch( True() ,
[column] in {"1", "2", "3"} , "Cat1",
[column] in {"3", "4", "5"} , "Cat2",
"Cat3"
)
based on your suggestion, i am adding a new column as follows
=Switch(True() ,
[ApplicationType] {"Duplicate", "Duplicate (R)"} "Dup",
"other"
)
however it is giving error Token RightBrace Expected.
also can there be any other drag and drop option to do so.
Hi @waqarahmadkp ,
You can update the formula of your calculated column as below:
Column =
SWITCH (
TRUE (),
[ApplicationType] IN { "Duplicate", "Duplicate (R)" }, "Dup",
"other"
)
Best Regards
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.
| User | Count |
|---|---|
| 39 | |
| 28 | |
| 28 | |
| 22 | |
| 18 |
| User | Count |
|---|---|
| 67 | |
| 37 | |
| 32 | |
| 26 | |
| 25 |