Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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êsCheck out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
72 | |
38 | |
31 | |
27 |
User | Count |
---|---|
92 | |
50 | |
44 | |
40 | |
35 |