Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

Announcements
Qlik® Product Spotlight: Discover what’s possible. Get more from our products.
See for yourself. Register today.
Not applicable

How do I add two different dates into one date field

Here is my scenario I have two different Dates Sale Date and order Date these two dates in one table but these are two separate fields I want to have only one field like in this case I want to have only one date which is sales date i want order date to merge into that how do i do that

3 Replies
Not applicable

Re: How do I add two different dates into one date field

Could you write an example what logic do you want to use in the merging?

Re: How do I add two different dates into one date field

May be you need this?

Canonical Date

rsvebeck
Valued Contributor

Re: How do I add two different dates into one date field

1/ you create one master calendar that range from first date possible last date possible.

2/ add a calendar type field to that calendar and give a new field called "calendar type" the value "order"

3/ concatenate (duplicate) that calendar table, but without that field  "calendar type" and add a new value to "calendar type", with the value "sales".

you now have 1 master calendar that works for both dates, just demand the user to always choose one of the two "date types"

brg

Robert Svebeck

Svebeck Consulting AB