Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
tuncay
Helper III
Helper III

Create a new column

I want to create a new column, which inspects another column and if the cell contents starts with E, the new column should be: It is E. If it's B, it should be: It is B. And so on. How can I create such a column?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hello

You can use following DAX to create column to get result.

 

Column E or B = IF(LEFT('TableName'[ColumnName], 1) = "E", "It is E", IF(LEFT('TableName'[ColumnName], 1) = "B", "It is B"))

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hello

You can use following DAX to create column to get result.

 

Column E or B = IF(LEFT('TableName'[ColumnName], 1) = "E", "It is E", IF(LEFT('TableName'[ColumnName], 1) = "B", "It is B"))

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.