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

Diff Tables

Hi there,

I have 2 tables that includes 2 different date formats. I would like to join and then show it in line chart..Let me make it clear ..

TABLE 1

DATE_ID:    COUNT_CUSTOMER

01/01/2014        100

TABLE 2:

DATE_ID:                        AMOUNT

01/01/201 01:15 PM          30

I want to do format changing and calculation of second table DATE_ID in qlikview edit script. The client want to see line chart and see the total number of customer and total amount for per day...

If you reply me I would be apprecaited in you..

Kind Regards.

Labels (1)
3 Replies
marcus_sommer
MVP
MVP

Try this:

floor(DATE_ID) - it removed the hours, minutes ...

- Marcus

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

TABLE1:

Load date#(DATE_ID,'DD/MM/YYYY') as DATE_ID, COUNT_CUSTOMER

From ...etc

join (TABLE_1)

Load date(floor(timestamp#(DATE_ID,'DD/MM/YYYY'),'DD/MM/YYYY') as DATE_ID, AMOUNT

From ...etc


talk is cheap, supply exceeds demand
maxgro
MVP
MVP

i think you have to convert the date when you load it from the second table using the following format

join ([TABLE 1])

LOAD

     date#(DATE_ID, 'DD/MM/YYYY hh:mm TT') as DATE_ID,

     AMOUNT

FROM

     .....your source for table 2

     ;