Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
In my dataset, I have a column with multiple text values. I am looking for assistance with a DAX statement that will allow me to change the values (in a new column) to something more description. For instance:
If B = Blue, If R=Red, If Y = Yellow
I am having problems creating mutliple conditions and have Power BI accept the statement.
Thanks in advance for the help!
Solved! Go to Solution.
@Anonymous
New Column =
Switch (Position[Formal]),
"B", "Blue",
"R", "Red",
"Y", "Yellow",
"Other")
Proud to be a Super User!
@Anonymous
column = switch(fieldname,
"b", "Blue",
"r", "red")
etc
Proud to be a Super User!
@Anonymous
whats your field name?
Proud to be a Super User!
@Anonymous
New Column =
Switch (Position[Formal]),
"B", "Blue",
"R", "Red",
"Y", "Yellow",
"Other")
Proud to be a Super User!
Position (Formal)
Will this be a new column, or change the existing?
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 63 | |
| 51 | |
| 41 | |
| 23 | |
| 18 |
| User | Count |
|---|---|
| 130 | |
| 111 | |
| 48 | |
| 30 | |
| 28 |