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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

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

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.