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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
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

Labels (1)
2 Replies
vkish16161
Creator III
Creator III

Ben,

Try this:

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

MarcoWedel
MVP
MVP

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