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

Concat and date format issue: Garbage after expression: '00'

Hello,

i cannot concate a date for using it in a set analysis. I get the error:

eikenberg_0-1709280704514.pngeikenberg_1-1709280720423.png

I already trunced the time data with "trunc(belegdatum, 'DD')" to remove the time part but it looks it is added afterwards.

Looks like concat cannot handle "space"!?

How can i slove this?

Labels (1)
15 Replies
MayilVahanan

Can you send the link reg. ">=" outdated in set analysis? so that,I can know it..
Its in help.

Set modifiers with dollar-sign expansions | Qlik Sense on Windows Help

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
eikenberg
Contributor III
Contributor III
Author

I searched the forum for "set analysis greater than" and found this Using Greater Than in Set Analysis - Qlik Community - 353310

Didnt found the example in the help.

MayilVahanan

its very old thread. so ignore that.. now, set analysis is much advance 😀

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
henrikalmen
Specialist
Specialist


@eikenberg wrote:

In oracle date is always with time, it is not possible to cut it off. As soon as you convert something to date it has also time.

It's good practice to remove the timestamp part when loading the data into Qlik, if the timestamp part is unnecessary (and it seems to be only zero-values in your case and therefore probably unnecessary to keep in the data model).

eikenberg
Contributor III
Contributor III
Author

I tried to remove the timestamp part, but it is not working.
Oracle to_date gives always date with time back.

And if i convert it to char qlik does not regocnize it as date anymore, even if its fit the given DateFormat.

SET DateFormat='DD.MM.YYYY';


to_char(BELEGDATUM, 'dd.mm.yyyy') as BELEGDATUM -> "$ascii $text"

 

Is there a way to convert the date field after the load?

henrikalmen
Specialist
Specialist

Convert in qlik script, not in sql. You can for example do it with preceding load, something like this example:

mytable:
LOAD date#(left(BELEGDATUM, 8), 'DD.MM.YY') as BELEGDATUM, otherdata;
SQL select BELEGDATUM, otherdata from sqltable;