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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
KirstenKa
Creator II
Creator II

Fix leading zero's in join

In Qlik somehow the leading zero's are removed while uploading. I thought it was fixed in the code. However I still see no leading zero's in my dataset. When the "000"  is added in the join  (see bold in code below or yellow in attachment). Which means the join is still not working correctly? See data table issue further below in message or see attachment. How to fix this?

 

 

tmp_C8:

LOAD

    "Item Trading Code" & '|' & "Color Code"                       as %ItemColor_GlobalId,

    "Item Trading Code" & '|' & "Color Code"  as ItemColor_GlobalId_C8,

    'FT' as _indSection,

    *

 

Concatenate( tmp_C8 )

LOAD

    "Item Trading Code" & '|' & "Color Code"        as %ItemColor_GlobalId,

    "Item Trading Code" & '|' & "Color Code"        as ItemColor_GlobalId_C8,

    'APP' as _indSection,

    *

 

Qualify *;

Unqualify '%*';

Unqualify '_*';

 

NoConcatenate

C8:

Load

              *

Resident tmp_C8

;

 

Drop table tmp_C8;

 

Outer Join( C8 )

Infa:

LOAD

    "Trading Code" & '|' & "Color Code"                  as %ItemColor_GlobalId,             

    "Trading Code" & '|' & "Color Code"    as ItemColor_GlobalId_Infa,

     Date(Date#("Regional Retail Introduction Date", 'DD/MM/YYYY'),'MM/DD/YYYY') as RegionalRetailIntroductionDate,

              *

 

 

Outer Join( C8 )

PPT:

LOAD

    "Trading code" & '|' & Num( "Color" , '000' )                               as %ItemColor_GlobalId,     

    "Trading code" & '|' & "Color"                             as ItemColor_GlobalId_PPT, 

    *

 

Outer Join( C8 )

SAP:

LOAD

   "Item ID" & '|' & Num( "Color" , '000' )               as %ItemColor_GlobalId,             

    "Item ID" & '|' & "Color"                        as ItemColor_GlobalId_SAP,

   If(num#([MovAv.4200],'#,00')<>0 AND num#("LSRP-4000",'#,00')<>0 AND trim([MovAv.4200]) & ''<>'' AND ("LSRP-4000")<>0 AND ([MovAv.4200])<>0 AND len(trim(Theme))*len(trim(MovAv.4200))*len(trim("CoO(Purcha"))*len(trim("LSRP-4000")), 'Ready', 'Not ready')  as SAPSFMSstatusSalesorder,

              *

 

See here the data 

KirstenKa_0-1694005319345.png

 

Labels (1)
1 Reply
Fairouz_kh
Contributor
Contributor

Hello @KirstenKa ,

I'm facing the same problem, did you find the solution of this issue please ?