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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
ConnieMaldonado
Responsive Resident
Responsive Resident

Data Modeling Best Practice: One column in a table?

Hello - I'm designing a data model for a field service project.  Although I use Power BI extensively and have been exposed to databases and models, it's my first go at designing one.  What can I say - resources are tight, and I'm up for the challenge.  My question is a simple one.  Is it ok or good data modeling design to have a table with one column? 

 

I have two tables: exceptions and na_reasons (na stands for not available).  The exceptions table tracks dates/times a technician will not be available to receive jobs.  As part of the exceptions record, the na_reason must be indicated.  The na_reasons table has all the valid na_reasons. 

 

See the example below.  Thanks.

 

 

 

exceptions.PNG

As an example:

 

exceptions example.PNG

1 ACCEPTED SOLUTION
Weav8060
Frequent Visitor

absolutely ok to set up such a "dimension" table.  Additional columns may suggest themselves in due time for aspects associated with reasons.  They may be grouped for instance using the ad hoc grouping feature, or ordered using an Order ID column.  You may want to report quantities on all reasons, and so you need your master list of reasons.  Also if you have another employee table that makes sense not to consolidate with the main, you'll have a one-to-many relationship to both tables and key your filters to na_reasons

View solution in original post

2 REPLIES 2
Weav8060
Frequent Visitor

absolutely ok to set up such a "dimension" table.  Additional columns may suggest themselves in due time for aspects associated with reasons.  They may be grouped for instance using the ad hoc grouping feature, or ordered using an Order ID column.  You may want to report quantities on all reasons, and so you need your master list of reasons.  Also if you have another employee table that makes sense not to consolidate with the main, you'll have a one-to-many relationship to both tables and key your filters to na_reasons

jeroendekk
Resolver IV
Resolver IV

Hi @ConnieMaldonado 
I depends a bit on the rest of the model. But if in this model the excemptions tables is a fact table (which it looks like in this example) then it is a good solution if you need all reasons.

If you need to know for example the count of exceptions by na_reason and you want to display all the reasons that have no excemption this is the way I would go. 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Best regards,
Jeroen

Jeroen

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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