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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Combining Integer and date

Hi!

I'm trying to combine Integer '1234' and Date together.

I've tried everything but QV keeps changing my datatype to text.

Here's an example:

INTEGER&date(DATE,'YYYYMMDD') as FINALRESULT

I want FINALRESULT to be in Integer format not in String because I need to use Intervalmatch later.

Thank you!!!

-Mikael

Labels (1)
3 Replies
Not applicable
Author

use something like:

num(date#())

erichshiino
Partner - Master
Partner - Master

Hi,

You can try this:

num(INTEGER&text(date(DATE,'YYYYMMDD')))

or

num#( INTEGER&date(DATE,'YYYYMMDD'), '000000000000)

Hope it helps,

Erich

Not applicable
Author

Thank you for your suggestions. I founf out that my Integer was 15 digits long and QV only supports 14 digits integers.