Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Rajitha1
Contributor III
Contributor III

How to create Date Dimension

Hi Team,

      I have two tables with no common column. Two tables having date columns, without joining the tables need to create Date dimension.

 

Thanks,

Rajitha

Labels (1)
2 Solutions

Accepted Solutions
AshutoshBhumkar
Partner - Specialist
Partner - Specialist

Hi,

You need to somehow connect those two tables in order to get the data on selection.

Create a Bridge table with Dates from both the tables, Alias it as DATE and connect both the tables using DATE column.

 

E.g:

Table 1

ID, SalesDate,Sales

SalesDate as DATE

 

Table2

Customer,OrderDate,OrderValue

OrderDate as DATE

 

 

Bridge

SalesDate   as DATE  from Table1

Concatenate

OrderDate  as DATE    from Table2

 

 

Please provide some sample data for better understanding.

 

Hope this helps.

 

Thanks,

Ashutosh

View solution in original post

AshutoshBhumkar
Partner - Specialist
Partner - Specialist

The example I provided below will combine two DATE columns from two different tables.(Bridge)

Now, when you select DATE on the sheet, records from both the tables will be shown.

View solution in original post

5 Replies
AshutoshBhumkar
Partner - Specialist
Partner - Specialist

Hi,

You need to somehow connect those two tables in order to get the data on selection.

Create a Bridge table with Dates from both the tables, Alias it as DATE and connect both the tables using DATE column.

 

E.g:

Table 1

ID, SalesDate,Sales

SalesDate as DATE

 

Table2

Customer,OrderDate,OrderValue

OrderDate as DATE

 

 

Bridge

SalesDate   as DATE  from Table1

Concatenate

OrderDate  as DATE    from Table2

 

 

Please provide some sample data for better understanding.

 

Hope this helps.

 

Thanks,

Ashutosh

Rajitha1
Contributor III
Contributor III
Author

Hi @AshutoshBhumkar  as you said i.e. okay but i need Date Dimension script.

Thanks,

Rajitha

AshutoshBhumkar
Partner - Specialist
Partner - Specialist

Hi, Can you please explain Date Dimension script ?

or can you provide an example about what exactly you are looking for.

 

Ashutosh

Rajitha1
Contributor III
Contributor III
Author

Combining two date columns from two different tables.

AshutoshBhumkar
Partner - Specialist
Partner - Specialist

The example I provided below will combine two DATE columns from two different tables.(Bridge)

Now, when you select DATE on the sheet, records from both the tables will be shown.