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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
JohnCavil
Helper I
Helper I

Question about creating relationships between tables

Hey guys,

 

I have a question on how to best manage a type of relationship between tables i'm dealing with. Really new to this, so if the answer is obvious please just say so or point me to somewhere that answers it.

 

Basically i have multiple tables with their own unique columns. One column though, lets call it "naming string" has an generated name that holds a lot of information. I have no central tables, just a bunch of tables with this "naming string" and information linked to it. It will look like this:

 

TABLE 1

info1_infor2_info3_info4_info5_etc

 

TABLE 2

info1_infor2_info3_info4_info5_etc

 

TABLE 3

info1_infor2_info3_info4_info5_etc

 

So that by splitting the column up i can seperate all the information. Now each of my tables have this string. And in some cases the unique string will exist in multiple tables, but not always. And sometimes maybe "info1" will be common between two tables, but the rest of the string is different. And i don't know where each naming string occurs or in how many tables. Just that in some of the tables the same naming string can exist and i'd like to link those.

 

I used to just deal with this by making one huge appended table (that then had a **bleep** ton of columns, which were mostly just blank until you got to the rows where those columns actually had data).

 

The thing is i'd like to see if i cant create a relationship between these tables to avoid the monster appended table.

I'm not sure how to go about this though. I'd think i would want to have a single table that either holds the naming string, or splits the naming string and holds a value for "info1", "info2", "info3" and so on. And then i relate all the tables to this central table, so that can be like the hub that just links the tables if they happen to have the same naming string.

 

Does that even make sense? Or is it possible? Or is there maybe a better way? I have had no issue with the massive appended table when my data was structured like this, however a customer would really like a more neat data structure i think. And it might be faster too.

 

Any help would be appreciated 🙂

1 REPLY 1
dax
Community Support
Community Support

Hi @JohnCavil , 

I am not clear about your requirement, if possible could you please inform me more detailed information(such as your expected output and your sample data )? Then I will help you more correctly.

Please do mask sensitive data before uploading.

Thanks for your understanding and support.
Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.