Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Sxbbb
Creator III
Creator III

By pressing 'TYPE' or 'Wire '  the value will not change as selected

I have a field 'TYPE' , 'Wire ' , 'Output ' ,'Number'

in field  'TYPE' contains data  'TYPE1' and 'TYPE2'

in field  'Wire' contains data  'Wire1' and 'Wire2'

 

I want to display the value 'Output *'Number' where 'TYPE' = 'TYPE1'and 'Wire' = 'Wire1' always

By pressing 'TYPE' or 'Wire '  the value will not change as selected.

I tried the code but the value is not showing it's not right :

 

if(TYPE=''TYPE'1' and Wire='Wire1' , Sum(Aggr((Output*Number),Part,DATE,WorkOrderNo)))

 

1 Solution

Accepted Solutions
MayilVahanan

Hi

Try like below

Sum({<Type={'TYPE1'}, Wire={'Wire1'}>}Output*Number)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

9 Replies
MayilVahanan

Hi

Try like below

Sum({<Type={'TYPE1'}, Wire={'Wire1'}>}Output*Number)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Sxbbb
Creator III
Creator III
Author

@MayilVahanan   I want to put Aggr. Where can I put the code?

I tried this and can't do it. Sum({<Type={'TYPE1'}, Wire={'Wire1'}>}Aggr(Output*Number,Part,DATE,WorkOrderNo))

Sxbbb
Creator III
Creator III
Author

@BrunPierre It's the code I tried and the values ​​are not correct.

Sxbbb
Creator III
Creator III
Author

I did it, thank you very much everyone.

Sxbbb
Creator III
Creator III
Author

@MayilVahanan 

I tried using field 'TYPE' in a Listbox and found that the value changed depending on the type selected in the Listbox.

MayilVahanan

Is both  Output & Number are from same table?

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Sxbbb
Creator III
Creator III
Author

different tables
MayilVahanan

okay, then try like below

Sum({<Type={'TYPE1'}, Wire={'Wire1'}>}Output)*Sum({<Type={'TYPE1'}, Wire={'Wire1'}>}Number)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Sxbbb
Creator III
Creator III
Author

it's not right Now the latest code I used is

Sum({<Type={'TYPE1'}, Wire={'Wire1'}>} Aggr((Output*Number),Part,DATE,WorkOrderNo)))