Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
nayanpatel
Partner - Creator
Partner - Creator

Manually Filed assignment to Numeric Columns (Expressions)

Hi Friends,

I have a table Contains columns(ID,Opening,Need Identification,Product Presentation) etc. as attached in screenshot

Now, I want to map some external filed called Status to that columns and show sum.

Please help.

Expected output is attached here

Thank you.

Labels (1)
  • SaaS

2 Solutions

Accepted Solutions
Taoufiq_Zarra

attached

you can use ValueList :

Status :

=ValueList('OPENNING','NEED IDENTIFICATION','PRODUCT PRESENTATION','NEGOTIATION')

Total:

=If(ValueList('OPENNING','NEED IDENTIFICATION','PRODUCT PRESENTATION','NEGOTIATION')= 'OPENNING',
sum([##_OPENING]),
if(ValueList('OPENNING','NEED IDENTIFICATION','PRODUCT PRESENTATION','NEGOTIATION')= 'NEED IDENTIFICATION',
sum([##_NEED IDENTIFICATION]),
if(ValueList('OPENNING','NEED IDENTIFICATION','PRODUCT PRESENTATION','NEGOTIATION')= 'PRODUCT PRESENTATION',
sum([##_PRODUCT PRESENTATION]),
if(ValueList('OPENNING','NEED IDENTIFICATION','PRODUCT PRESENTATION','NEGOTIATION')= 'NEGOTIATION',sum([##_NEGOTIATION])
))))

 

output:

Capture.PNG

 

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉

View solution in original post

nayanpatel
Partner - Creator
Partner - Creator
Author

3 Replies
sourabh808
Contributor II
Contributor II

Hello Nayan ,

 

Table1:

Load

'Opening' as Status,

Id,

##_opening as Total

from xyz;

 

 

Load

'Need Identification' as Status,

Id,

##Need_Identification as Total

from xyz;

Load

'Product Presentation' as Status,

Id,

##Product_Presentation as Total

from xyz;

 

You can plot them in a table and you have your expected output.

Regards,

Sourabh

Taoufiq_Zarra

attached

you can use ValueList :

Status :

=ValueList('OPENNING','NEED IDENTIFICATION','PRODUCT PRESENTATION','NEGOTIATION')

Total:

=If(ValueList('OPENNING','NEED IDENTIFICATION','PRODUCT PRESENTATION','NEGOTIATION')= 'OPENNING',
sum([##_OPENING]),
if(ValueList('OPENNING','NEED IDENTIFICATION','PRODUCT PRESENTATION','NEGOTIATION')= 'NEED IDENTIFICATION',
sum([##_NEED IDENTIFICATION]),
if(ValueList('OPENNING','NEED IDENTIFICATION','PRODUCT PRESENTATION','NEGOTIATION')= 'PRODUCT PRESENTATION',
sum([##_PRODUCT PRESENTATION]),
if(ValueList('OPENNING','NEED IDENTIFICATION','PRODUCT PRESENTATION','NEGOTIATION')= 'NEGOTIATION',sum([##_NEGOTIATION])
))))

 

output:

Capture.PNG

 

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
nayanpatel
Partner - Creator
Partner - Creator
Author

Thank you