Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Mahamed_Qlik
Specialist
Specialist

master dates from multiple dates

Hi All

I have below tables and I want to create master calendar which be considered with all the highlighed dates from all the table. what is best approach to achieve this.

I have tried with concatenating table using flag but my number of record count is almost duplicating.
What should be the best way to handle to this.

Note: I have already checked the canonical date post but it seems not suitable for me because I have only one key between tables that is "Store_ID"

Mahamed_Qlik_0-1667109810010.png

Kindly suggest

 

Regards

Mhamed

Labels (1)
3 Replies
robert99
Specialist III
Specialist III

Hi @Mahamed_Qlik 

NB. I assume there are many entries for each Store_ID for all three categories. So concatenating might be the easy (and best) option. I'm unsure what your reservation is unless it is a huge number of records. 

So I would concatenate all three tables. And do a canonical date from there. You would likely need a new field for the three tables. Like rowno() & 'Store' as RowID AND Rowno() & 'Staff' as RowID AND Rowno() & 'Prod' as RowID to join to the canonical date though. To ensure there is a unique reference for all the entries. And use RowID to join to the Canonical table

I tend to do this anyway as even when I thought I used a unique number to link to the canonical date table it turned out not to be. Rowno() and an one off identifier eg 'Store' for each table loaded always is.

 

RafaelBarrios
Partner - Specialist
Partner - Specialist

Hi @Mahamed_Qlik 

fllowing @robert99 suggestion, you should go for a canonical calendar 

https://community.qlik.com/t5/Design/Canonical-Date/ba-p/1463578

Hope this helps.

best,

users find answers! Don't forget to mark a solution that worked for you & to smash the like button! 🙂

vinieme12
Champion III
Champion III

all of these seem to be dimension tables

can you include your fact table as well? as  specify the cardinalities 1-to-n or 1-to-1

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.