Forum Discussion

abhiram342's avatar
abhiram342
Microsoft Employee
2 years ago
Solved

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.

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 Reply