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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
G3S
Creator III
Creator III

Ignoring user selection in one field

Hi,

in the app, I have multiple fields as filters. 

fields 'Version' and  'Carrier' will be selected. I need to keep field 'Version' (and selections from other fields) & ignore selection in 'Carrier' completely to calculate TotalTEU. Please help to calculate TotalTEU.

POLCarrierVersionCntrTEUTotalTEU
NaplesAAA2020200300
NaplesBBB2020100300

 

calculating Cntr TEU with this expression: 

sum(aggr(([CntrTEU]),[CntrSeal]))

 

thank you

Labels (2)
10 Replies
Taoufiq_Zarra

Hi,

for example to ignore selection in 'Carrier' for sum(TotalTEU), the script :

=sum({<Carrier=>}[TotalTEU])

output :

Capture.PNG

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") 😉
G3S
Creator III
Creator III
Author

Thank you @Taoufiq_Zarra 

apologies, I should have mentioned that the table is the required output.  these are the data fields:

  • POL
  • Carrier
  • Version
  • CntrTEU

I am looking for a solution to calculate the TotalTEU (using CntrTEU field). 

Taoufiq_Zarra

can you share the output from the initial table ?

Regards,
Taoufiq ZARRA

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

(you can mark up to 3 "solutions") 😉
G3S
Creator III
Creator III
Author

@Taoufiq_Zarra 

POLCarrierVersionCntrTEUTotalTEU
NaplesAAA2020200200
NaplesBBB2020100100

 

need for TotalTEU to show as 300 in both lines.

Taoufiq_Zarra

@G3S  if I understood correclty :

Dimension: POL, Carrier, Version, CntrTEU

Measure :

=sum({<Carrier=>} total [TotalTEU])

or :

=sum({<Carrier=>} total<POL,Version> [TotalTEU]) if it depend to POL,Version

output of both in this case :

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") 😉
G3S
Creator III
Creator III
Author

@Taoufiq_Zarra 

TotalTEU to be calculated at the front end. It is not a data field. 

I think correct response for your request for initial table is:

POLCarrierVersionCntrTEU
NaplesAAA2020200
NaplesBBB2020100

 

Taoufiq_Zarra

@G3S  Ok 😀

Dimension: POL, Carrier, Version

Measure :

=sum({<Carrier=>} total [CntrTEU])

or :

=sum({<Carrier=>} total<POL,Version> [CntrTEU]) if it depend to POL,Version

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") 😉
G3S
Creator III
Creator III
Author

👍 @Taoufiq_Zarra 

it works when I have not made a selection in the 'Carrier' field.  

but when a selection is made in  'Carrier' field,  'TotalTEU' shows the same as the CntrTEU.

POLCarrierVersionCntrTEUTotalTEU
NaplesAAA2020200200

 

How to get it to show 300 which is the sum of CntrTEU for POL, Version even when a selection is made in 'Carrier'?

(apologies, this is first time posting to a forum)

Taoufiq_Zarra

I didn't quite get it,
here's what I find if I select Carrier no change 300 ?

 

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") 😉