cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

Need advice on data modeling

Hey awesome community! I am having trouble building a data model for a project and determine the best way to setup the relationships, I could use some guidance. I have a dataset that has 12 tables of different types of Work Orders and would like to be able to setup filter slicers for location, department, maintenance yard, WO status, and count the number WO's across all the tables. What is the best approach to build relationship between the tables? 

 

Data types in each table            

WO ASSET ID 

WO NUMBER

WO STATUS

WO DESC 

DEPARTMENT 

LOCATION

MAINTENANCE YARD 

 

data2.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User IV
Super User IV

Re: Need advice on data modeling

@mrmiyagi I would suggest renaming the columns to the be the same name and use append function in the query editor, if you don't rename to the same name, it is not going to work, see below

 

Table 1 has one column called column1

Table 2 has one column called column2

 

when you append, a table will look like two columns, column1 and column2 but if Column2 in table 2 is renamed to column1, the final output after append will be a table with column1 and values from both the table and this is what you want. 

 

I hope it makes sense.

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

3 REPLIES 3
Highlighted
Super User IV
Super User IV

Re: Need advice on data modeling

@mrmiyagi First and foremost thing you want to do is to create dimension  table for the common slicers that you want to use across all the workorder tables,

 

2nd way could be to append all the workorder tables as a big table which will be used as a fact table and you can have a star schema.

 

https://docs.microsoft.com/en-us/power-bi/guidance/star-schema

 

Regardless 1st or 2nd option, best practice to have dimensions for your slicers that filters all your fact table.

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

 

 






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





Highlighted
Helper II
Helper II

Re: Need advice on data modeling

@parry2k thank you for the response! Ok I have thought about appending into one big table but does it matter if some of the tables have different columns? they are not all identical 

Highlighted
Super User IV
Super User IV

Re: Need advice on data modeling

@mrmiyagi I would suggest renaming the columns to the be the same name and use append function in the query editor, if you don't rename to the same name, it is not going to work, see below

 

Table 1 has one column called column1

Table 2 has one column called column2

 

when you append, a table will look like two columns, column1 and column2 but if Column2 in table 2 is renamed to column1, the final output after append will be a table with column1 and values from both the table and this is what you want. 

 

I hope it makes sense.

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors