Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hello, I was hoping someone could help me please.
I'm really struggling with something
I have a column in a table called Product. This has aorund 15 unique items in it.
I would like another column with a more generic Product description. So for example, if the product column had the choices BMX, Mountain or Racer, I would like a new column to say Bike, if the column product = BMX, Mountain or Racer
Could anybody please help with that, I'm really struggling.
Thank you in advance for any help.
Solved! Go to Solution.
Try this calculated column:
Product Group =
VAR vProduct = Table1[Product]
VAR vResult =
SWITCH ( TRUE (), vProduct IN { "BMX", "Mountain", "Racer" }, "Bike", "Other" )
RETURN
vResult
Proud to be a Super User!
Try this calculated column:
Product Group =
VAR vProduct = Table1[Product]
VAR vResult =
SWITCH ( TRUE (), vProduct IN { "BMX", "Mountain", "Racer" }, "Bike", "Other" )
RETURN
vResult
Proud to be a Super User!
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 |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 68 | |
| 67 | |
| 33 | |
| 31 | |
| 29 |