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
abhiram342
Employee
Employee

Data Model Design Question - Redundant Date Tables

Hi All - I have data model as shown in below screen shots. In model, I have cloned Date Table multipletimes , looking for suggestions on how to remove date table redundancy  and possible redesing options.

Data Model Design.png

Measures:

DimPipelines ==> Total Pipelines ==> COUNT(PipelineId)

PipelineId is UniqueId

DimActivites ==> Total Activities ==> COUNT(ActivityId)

ActivityId is UniqueId ( It's concatenation of  PipelineId + ActivityName ; ActivityId  =PipelineID + ActivityName) 

FactTicketHits ==> Total Hits ==> SUM(TotalHits)

                      ===> Total Tickets ==> COUNT(TicketId)

ActivityId , IncidentId is Unique ==>Each Activty can trigger multiple tickets)

DimTickets ==> MetaData of TicketId

 

We need to clone date table toanswer below questions

Dim Pipelines

==> Total Pipelines Started in Month/ Year/ Quarter/  Weekly. ( StartDate)

( ex: I'm unable to use Default Date Hierarchy provided by Power BI because Month just gives month Name but not combination of Month and Year i.e By Dragging StartDate from DimPipeline

==> Total Pipelines Finished in Month/ Year/ Quarter/  Weekly. ( I'll use UserRelationship here) ( FinishedDate)

 

Dim Activites

==> Total Activites Started in Month/ Year/ Quarter ( StartDate)

==> Total Pipelines Finished in Month/ Year/ Quarter ( I'll use UserRelationship here) ( FinishedDate)

I can't reuse same date tables because it creates circular dependency. Please Provide your suggestions

 

FactTicketHits

==> TotalHists in Month/ Year/ Quarter

DimTickets

==> Total Incidents Created in Month/ Year/ Quarter/ Weekly (CreatedDate)

==> Total Incidents Resolved  in Month/ Year/ Quarter/ Weekly ( I'll use UserRelationship here) ( ResolvedDate)

I can't reuse same date tables because it creates circular dependency. Please Provide your suggestions

 

DimTickets

 

 

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@abhiram342 ,

I think the model needs reconsideration. For example, if you need a ticket as both fact and Dim, then you should have two copies one a DIm and one as fact

So the model will be Like

 

Date  - dim

Ticket - Dim

Ticket - Fact

Pipeline -> Activity ->Hits -> combine Fact

If need have Pipeline and Activity as Dim

 

Join Date with Ticket Fact , Combined fact

Ticket with Ticket and combined fact

In this model, you can have an independent table if needed. Attached file - Without join date table for Active, Created, and Resolved (Use same logic as HR). Second with the Joined date table, the same stuff

Power BI: HR Analytics - Employees as on Date : https://youtu.be/e6Y-l_JtCq4
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
Power BI HR Active Employee Tenure Bucketing, and Hired, Terminated, and Active employees: https://youtu.be/fvgcx8QLqZU

 

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@abhiram342 ,

I think the model needs reconsideration. For example, if you need a ticket as both fact and Dim, then you should have two copies one a DIm and one as fact

So the model will be Like

 

Date  - dim

Ticket - Dim

Ticket - Fact

Pipeline -> Activity ->Hits -> combine Fact

If need have Pipeline and Activity as Dim

 

Join Date with Ticket Fact , Combined fact

Ticket with Ticket and combined fact

In this model, you can have an independent table if needed. Attached file - Without join date table for Active, Created, and Resolved (Use same logic as HR). Second with the Joined date table, the same stuff

Power BI: HR Analytics - Employees as on Date : https://youtu.be/e6Y-l_JtCq4
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
Power BI HR Active Employee Tenure Bucketing, and Hired, Terminated, and Active employees: https://youtu.be/fvgcx8QLqZU

 

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.