Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
beneldridge
Partner - Contributor
Partner - Contributor

Using 2 columns of data to create another column depending on criteria

Hi all,

New to Qlik and stuck on some coding for something I would like to create:

I have 2 columns of numbers I would like to use for a new column depending on the status in another column:

StatusABNew Column
Delivered102020
Closed102020
In-Progress20020
Reserved20020

For example the top two rows I would like to take column B numbers into my new column and the bottom 2 rows from column A.

Can anyone help with this coding?

Thanks,

Ben

2 Replies
vkish16161
Creator III
Creator III

Ben,

Try this:

If (recno()<=2, B, A) as "New Column"

MarcoWedel

please don't create multiple threads for the same question:

Bringing 2 columns of numbers into a new column depending on criteria

thanks

regards

Marco