Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
sifatnabil
Specialist
Specialist

Associating date fields from 2 fact tables

Hi, on fact table 1 I made the the dates like this:

Fact1:

CONVERT(VARCHAR(10),DealTime,3) as DATESTAMP,

datename(Month,DealTime) as MONTH,

datename(Year,DealTime) as YEAR,

datepart(week,DealTime) as WEEKNUMBER,

datepart(day,DealTime) as DAY


Fact2:

... as DATESTAMP,

... as MONTH,

... as YEAR,

... WEEKNUMBER,

... DAY

This creates an unsightly model:

2facttables.PNG

The model works though but Is this efficient? Is link table the solution?

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Link table could be an option. But, probably this suggested canonical approach could be a better choice in general.

View solution in original post

1 Reply
tresesco
MVP
MVP

Link table could be an option. But, probably this suggested canonical approach could be a better choice in general.