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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Replace Null values with data from other column

How can I replace null values from column A with values From column B?

6 Replies
marcus_malinow
Partner - Specialist III
Partner - Specialist III

how about this in your load script?

If(ISNULL(ColumnA),ColumnB,ColumnA) as ColumnA

Marcus

Not applicable
Author

maybe you can suppress the null values so that they are not displyed in the table/chart.

CELAMBARASAN
Partner - Champion
Partner - Champion

If it is number then use Alt(ColumnA, ColumnB)

otherwise you have to use Marcus Malinow suggestion.

Not applicable
Author

I guess Marcus Malinow's solution will do the trick.

Not applicable
Author

Sadly it does not work. Its a date. For planning production I have DeliveryDate and ExtendedDeliveryDate. As I need to show how the planned deliveries are performing I need to use ExtendedDeliveryDate if there is one, otherwise I need to use DeliveryDate. I was planning to put data from DeliveryDate into null values of ExtendedDeliveryDate so my charts would be more precise. Any suggestions?

marcus_malinow
Partner - Specialist III
Partner - Specialist III

Are the values actually NULL, or empty strings? What is your data source?

If they are empty then this may work.

If(ISNULL(ColumnA) OR ColumnA = '',ColumnB,ColumnA) as ColumnA