Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
haneeshmarella
Creator II
Creator II

How do I remove synthetic key in the below query?

Tried renaming fields, still gives synthetic key for below query:

//Load Incremental Data

Incremental_Table:

LOAD

PICKTICKET#,

SHIP_TO_COUNTRY,

PLANNED_SHIP_VIA,

TOTAL_NO_OF_CARTONS,

PKMS_USERS,

CASE#,

TO_LOCATION,

MENU_OPTION_NAME,

FROM_LOCATION,

STYLE,

UNITS#,

DATE_STRING,

TIME_STRING,

DATE_TIME_STRING,

USER_NAME,

Date(Date#(DATE_STRING,'YYYYMMDD'),'MM/DD/YYYY') as DATE;

SQL Select....

FROM "\\Glsdwcfs02002\qv\QvDev\SrcDocs\2.NAM_Dell\1.QVD\MOD3_Data_Source.QVD" (QVD)

Hours_Associate:

LOAD USER_NAME

FROM "\\Glsdwcfs02002\qv\QvDev\SrcDocs\2.NAM_Dell\1.QVD\MOD3_Data_Source.QVD" (QVD)

;

LEFT Join(Hours_Associate)

Hour_Information:

LOAD * Inline [

SUPERVISOR, USER_NAME, HOURS, DATE

Charla Hunter,'Eliga Dani' , 8 , 07/16/2018,

Charla Hunter,'Karen Ector' , 8 , 07/16/2018,

Charla Hunter,'Lilian Fares' , 8 , 07/16/2018,

];

SS.PNG

16 Replies
haneeshmarella
Creator II
Creator II
Author

SS.PNG

Errors out.

haneeshmarella
Creator II
Creator II
Author

I need to load DATE_STRING into Hours_Associate_Table?

vishsaggi
Champion III
Champion III

Small correction Sunny it should be just DATE right?

LOAD *,

    USER_NAME&Date(Date#(DATE,'YYYYMMDD'),'MM/DD/YYYY') as UserDateKey

sunny_talwar

My bad, vishsaggi‌ is right... use DATE instead of DATE_STRING... But like this

Hours_Associate:

LOAD *,

    USER_NAME&Date(DATE, 'MM/DD/YYYY') as UserDateKey

Resident Hours_Associate_Temp;


DROP Table Hours_Associate_Temp;

DROP Fields USER_NAME, DATE From Hours_Associate;

haneeshmarella
Creator II
Creator II
Author

No error, but HOURS field in straight table does not populate as the above screenshot.

haneeshmarella
Creator II
Creator II
Author

Closed it, and then reloaded it after opening. Works now! Thanks Sunny!

haneeshmarella
Creator II
Creator II
Author

Thank you Vishwarath!