Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to split an item?

Good day,

I have a database in QV that are considering the item a and b together. Example, a has 30 units and b has 21 units, but my data is as below:

Header 1Header 2
a50
b1
c20
d30


How can I create a third header with a condition to consider item a only with 30 units and item b with only 21 units? Is it possible?

Tks and rgds,

Jorge.

3 Replies
jvitantonio
Luminary Alumni
Luminary Alumni

load

Header1, Header2,

if(Header1 = 'a', 30,If(Header1='b', 21)) as Header3

from your table...

CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     How you got the condition has a=30 and b=21?Is it always 30 and 21?Did you calculated based on some data?

Celambarasan

Not applicable
Author

Actually, i forgot to mention, item a is based 60% for a and 40% for b + b units