Forum Discussion
Justas4478
Post Prodigy
2 years agoExtracting first two characters to create new column
Hi, I am trying to do simple measure but it doesn't wan't to work for some reason.
I have this data: And I need to extract first two characters to create new column called gates.
For example from G1P0 I want to extract G1, same for G1P2 as well G2P0 etc.
I tried using this measure that should have worked but it isnt working for some reason.
Gate = LEFT('PickReport'[Floor],2)
Thanks
7 Replies
- MFelix
Super User
Hi Justas4478 ,
Measure only work with aggregations so you cannot do a LEFT. You need to select the table were you have this informaiton and add a new column, the syntax is correct.
- Justas4478
Post Prodigy
MFelix Hi, I cant create new column since my data connection is through power bi semantic model. Is there any other way that it can be done?
- MFelix
Super User