Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
PaReD_SF85
Contributor III
Contributor III

Count giving inaccurate result

I have a table in my new application that has only 1 of 6 columns not giving accurate counts, yet all columns are calculated the in the same manner.

Expression that should be resulting in 0 (zero):   Count({<[Other]={'X'}>}[Type])

Others as above but substitute [Other] with [Soap], [Lotion], etc.   (They are accurate totals based on the data)

Reference Table used and output results:

TypeSummed TypeSoapLotionTowelsRugBeddingOther
CondoOwnedX  XX 
RentalNon-OwnedXXX X 
Room OnlyNon-OwnedXXXXX 
HouseOwnedXX  X 
        
        
TypeSummed TypeSoapLotionTowelsRugBeddingOther
CondoOwned9  999
RentalNon-Owned434343 4343
Room OnlyNon-Owned171717171717
HouseOwned3838  3838
Total 107986026107107
Should be 1079860261070

 

Is 'Other' a reserved word by chance?  I moved Other to not be right most column (thinking it was using it as a total column), but the results are the same.

Thank you in advance for your assistance!

Labels (3)
1 Reply
PaReD_SF85
Contributor III
Contributor III
Author

I just added a line in the load to assign 'blank' when the field length is 0...and now it works.  Not sure the difference to make it count as if nulls were the character 'X' though?