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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
JimWorld
New Member

Creating a query based on the first 8 characters

I have a table that containes all of my sites information.   Each site is given a unique device prefix. ie caazucmp.  All of the network equipment that this site will start with these 8 characters.  How do I link this table with my device table based on the first 8 charcters in Power BI.  It is an easy task in SQL,  but I having a hard time finding a solution in Power BI.

 

Thanks for your help

1 REPLY 1
wdx223_Daniel
Super User
Super User

you need add a calculated column in the table

DeviceID=LEFT(Table[ColumnName],8)

then you can create the relationship with it.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.