We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi, I have a column of data that specifies shift/crew A, B, or C for different manufactured products and I would like to create a New Measure to replace A, B, and C with 1, 2, and 3 instead. I used the following code:
NewMeasure =
SWITCH(
SELECTEDVALUE('RS'[Crew]),
"A", 1,
"B",2,
"C",3
)
The new measure doesn't seem to work. Can anybody help me with this please? Thanks.
Solved! Go to Solution.
hHi @AsalN ,
There doesn't seem to be anything wrong with this Measure.
I have also created a column.
Column = SWITCH(RS[Crew],"A",1,"B",2,"C",3)
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Rongtie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
hHi @AsalN ,
There doesn't seem to be anything wrong with this Measure.
I have also created a column.
Column = SWITCH(RS[Crew],"A",1,"B",2,"C",3)
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Rongtie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Is this what you are looking for?
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 57 | |
| 38 | |
| 33 | |
| 19 | |
| 16 |
| User | Count |
|---|---|
| 68 | |
| 66 | |
| 41 | |
| 34 | |
| 24 |