Forum Discussion
Scalar error in addcolumns
- Anonymous2 years ago
Hi MyWeeLola
The first method is to right click on the Attribute column and select New group. This feature can help you group values in this column through GUI easily and give you the group column you want. Use grouping and binning in Power BI Desktop - Power BI | Microsoft Learn
The second method is to use DAX to create a calculated column
Column = SWITCH(TRUE(), 'Table'[Attribute] IN {"Jet","Seaplane","Glider"}, "Plane", 'Table'[Attribute] IN {"Titanic"}, "Ship", "Car" )Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!
Hi MyWeeLola
The first method is to right click on the Attribute column and select New group. This feature can help you group values in this column through GUI easily and give you the group column you want. Use grouping and binning in Power BI Desktop - Power BI | Microsoft Learn
The second method is to use DAX to create a calculated column
Column = SWITCH(TRUE(),
'Table'[Attribute] IN {"Jet","Seaplane","Glider"}, "Plane",
'Table'[Attribute] IN {"Titanic"}, "Ship",
"Car"
)
Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!
- MyWeeLola2 years ago
Helper II
Anonymous
Perfect, thank you for this.
Lola