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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
coddra_6
Contributor III
Contributor III

Outer Join With a default value insted of NULL

Hey,

I wanna know If there I could put a value defect insted of NULL when I use Outer Join Sentense.

2 Replies
marcus_malinow
Partner - Specialist III
Partner - Specialist III

Hi Dario,

You could try something like this


MainTable:
LOAD ......


LEFT JOIN (MainTable)
LOAD ... [from your join table]

MainTable2:
LOAD *,
if (isnull(joinedvalue),defaltvalue, joinedvalue) as Value
RESIDENT MainTable;

Alternatively, if your tables have a one to one relationship, an ApplyMap allows you to specify a default value.

Marcus

Anonymous
Not applicable

Dario

The NullAsValue load script statement may be of use to you.

Best Regards,     Bill