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: 
D19PAL
Creator II
Creator II

Join tables not showing any data

Hi Guys

Sorry for all the questions.

I've got the below script which was working perfectly, but all of a sudden, I can see the fields but no data, simple 1 to 1 join.

 

FactTemp:

NoConcatenate

            id   

FROM [**********.qvd] (qvd)   ;

 

LIB CONNECT TO '****************************)';

 

left Join (FactTemp)

SQL

select

            id,

    sales,

    currency

from

            Sales;

   

 

LIB CONNECT TO '*********)';

 

left join (FactTemp)

SQL

select

            id,

    targets

   

from

 

            targets;

    exit Script

 

I can see all the fields, but no data in sales, currency or targets.  I have checked if there's data and a match in them.

 

Thanks

 

1 Reply
joaopaulo_delco
Partner - Creator III
Partner - Creator III

Hi @D19PAL !

     This usually happens when the type of fields is different. 

Maybe in your qvd the id field is a number and sql source is a text.

I suggest put a Load  statement in every Sql query like "Load Text(id) ..." and also in your qvd like below:

FactTemp:
NoConcatenate
   Text(id) as id   
FROM [**********.qvd] (qvd);

LIB CONNECT TO '****************************)';

left Join (FactTemp)
Load 
    Text(id) as id,
    sales,
    currency;
SQL
select
   id,
   sales,
   currency
from Sales;

LIB CONNECT TO '*********)';
left join (FactTemp)
Load 
    Text(id) as id,
    targets
SQL
select
   id,
   targets
from
 targets;
 
exit Script;

 

 

Help users find answers! Don't forget to mark a solution that worked for you!