Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Total is coming out to be wrong in case of hiding a row in straight table

Hello,

I have created one straight table from below table which contains some entries as NA and I want to hide those entries in table.

   

ABCSum
SouthNANA99687
WestLaptopOnlineSearch189687
SouthNANA89657
EastLaptopOnlineSearch1139657
EastKioskNA239657
WestMobileOnlineSearch2539657
EastLaptopNA999657
NorthIpadNA39144000
EastIpadNA0
SouthNANA99687
NAMobileNA0

I am to hide those entries by using this expression =if(DRILL1<>'NA',sum(total),0) but the issues is total coming out is wrong. Total is considering the hidden rows as well.

Attached the application and data file for your reference

1 Solution

Accepted Solutions
sunny_talwar

Try this expression:

=Sum({<$(='['&GetCurrentField([DRILL1]) & ']') -= {'NA'}>}total)

View solution in original post

1 Reply
sunny_talwar

Try this expression:

=Sum({<$(='['&GetCurrentField([DRILL1]) & ']') -= {'NA'}>}total)