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.
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.
New Column =
Switch (Position[Formal]),
"B", "Blue",
"R", "Red",
"Y", "Yellow",
"Other")
Proud to be a Super User!
column = switch(fieldname,
"b", "Blue",
"r", "red")
etc
Proud to be a Super User!
whats your field name?
Proud to be a Super User!
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?
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.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |