Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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.
Thanks
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.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em Português@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?
Hi @Justas4478 ,
What do you want to do with that new column?
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em Português@MFelix The current column has gates(warehouses) and floors in the same column. I need to have second column that has only gates without any floors.
@MFelix I tried to create using SWITCH function but it only works when I have no more than one value selected in filter.
I tried other than 'SELECTEDVALUE' but then measure just return error.
You want to use tihs new column in your slicer is that it?
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThe Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 36 | |
| 33 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 128 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |