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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register 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?
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 52 | |
| 51 | |
| 35 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 92 | |
| 75 | |
| 41 | |
| 26 | |
| 25 |