Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Combine 2 Calculated Date Dimensions

Hi all,

I have  2 questions relating the following date:

Descriptions of values:

work_status = Location of work

receipt_date = Receipt of goods

status_date = Date at which status changed

I am looking for a single graph on which I can plot the count of goods received (Rec.Count) and good completed (Comp.Count) against dates.

I have 2 calculated date dimensions as follows:

Rec.Date =aggr(date(only({< work_status = , receipt_date = {"$(='>=' & vStartDate_Target & '<=' & vEndDate_Target)"} >} receipt_date )), work_id)

Comp.Date =aggr(date(only({< work_status = {'COMP'}, status_date = {"$(='>=' & vStartDate_Target & '<=' & vEndDate_Target)"} >} status_date work_id)

With the following Expressions:

Rec.Count =count({< work_status = , receipt_date = {"$(='>=' & vStartDate_Target & '<=' & vEndDate_Target)"} >} work_id)

Comp.Count = =count({< work_status  = {'COMP'}, status_date = {"$(='>=' & vStartDate_Target & '<=' & vEndDate_Target)"} >} work_id)

I got the following table from the formulas above:

Rec.Date Comp.Date Rec.Count Comp.Count
20 6
19/12/2015 70
20/12/2015 100
15/12/2015 130
17/12/2015 160
16/12/2015 190
18/12/2015 200
14/12/2015 200
14/12/201501
17/12/201501
17/12/201501
15/12/201501
15/12/201501
15/12/201501

2 Questions:

1) How do I get both Rec.Date and Comp.Date merged as a single dimension?

2) Why in the straigt table view would I not get the accumulation of the Comp.Count?

Many thanks for you help!

1 Solution

Accepted Solutions
amayuresh
Creator III
Creator III

Do you required output like below:

1.PNG

Used Data:

1.PNG

Script:

1.PNG

View solution in original post

5 Replies
Not applicable
Author

hi Maarten,

could you please sample data and what output you need

Regards

Sachin

Anonymous
Not applicable
Author

I no longer need this.

I could not add further details as I have limited licence on Qlikview

amayuresh
Creator III
Creator III

Do you required output like below:

1.PNG

Used Data:

1.PNG

Script:

1.PNG

maxgro
MVP
MVP

Maybe you can add a new date field (from receipt_date and status_date) as explained here

Canonical Date

tyagishaila
Specialist
Specialist

you need to create common Date Field.as

Mayuresh Athalye and maxgro
suggest.