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

Two dates as single date

Hi, could some one help on below scenario .

I dimension I have two rows orders received based on received date and delivered orders based on delivery date .

But in pivot table I need show like below

Ores type.     Count of orders

Received.      Count of order based on received date

Delivered.      Count of orders based on delivered date

 

4 Replies
jwjackso
Specialist III
Specialist III

Try Henric's Canonical Date 

You will have date types, received and delivered.  In the pivot table you you would have order type, canonical date, count(orders), count({<DateType={'received'>} orders),count({<DateType={'delivered'}>}

Abhi999
Contributor III
Contributor III
Author

Two count statement in same exp not working.

edwin
Master II
Master II

I would prefer to use a single calendar, this way you can use multiple date types in the same expression.  as an alternative to the Canonical Calendar post, you can join the high level date fields into the lowest granular level.  that way you have all your dates in one table - then create a bridge to a single calendar.  this way for any date, you can determine how many units were ordered and shipped.  in your case how many were ordered and delivered on specific date

Brett_Bleess
Former Employee
Former Employee

@Abhi999 if Edwin's post got you what you needed, we would appreciate it if you closed out the thread by using the Accept as Solution button on the post to mark that as the solution.  If you require further assistance leave an update, and if you did something different, you can post that and then use the button to mark that post too.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.