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!View all the Fabric Data Days sessions on demand. View schedule
Hello Team,
@danextian @v-henryk-mstf @Anonymous @V1
I have a table where i need to have a new column based on "Alloc Entity Code" Column. In the New calculated column the values starting with "UC" character should only be displayed. Can anyone please help me with the DAX.
https://community.powerbi.com/t5/user/viewprofilepage/user-id/313
https://community.powerbi.com/t5/user/viewprofilepage/user-id/390395
https://community.powerbi.com/t5/user/viewprofilepage/user-id/396724
https://community.powerbi.com/t5/user/viewprofilepage/user-id/148838
https://community.powerbi.com/t5/user/viewprofilepage/user-id/245936
Solved! Go to Solution.
Hi @Anonymous ,
You could create a column as below:-
Column =
VAR _start_with =
LEFT ( 'Table (3)'[alloc_entity_code], 2 )
RETURN
IF ( _start_with = "UC", 'Table (3)'[alloc_entity_code] )
Output:-
BR,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
Hi @Anonymous ,
You could create a column as below:-
Column =
VAR _start_with =
LEFT ( 'Table (3)'[alloc_entity_code], 2 )
RETURN
IF ( _start_with = "UC", 'Table (3)'[alloc_entity_code] )
Output:-
BR,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!