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

Cross table wrong data

Hi All,

I have created a cross table and after that it is showing wrong amount as shown in attached 1_screenshot. In 1st screen shot the sum(TAX) is 342446699 but in real total amount should be 38049633.because 38049633 is the total amount of all tax code but cross table creating this total amount for each tax code individually and that's why it is showing wrong data. Please tell me why cross table showing wrong data??

Thanks,

Narender

16 Replies
sergio0592
Specialist III
Specialist III

Try this :

=aggr(sum({<FLAG={'B'}>}STATISTICAL_VALUE),TAX_CODE )

sunny_talwar

How does your script look where you have implemented the cross table?

narender123
Specialist
Specialist
Author

Thanks Jean.

I know it will show right amount but my question is that why is showing wrong data ??

and how we can sort out this in script level not in chart level.??

vinieme12
Champion III
Champion III

Are You doing a Left join after your crosstable load??

This is the only thing that will cause your data rows to repeat for each fieldvalue

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
narender123
Specialist
Specialist
Author

No I am not doing any Left join but I am doing concatenation after cross table.

vinieme12
Champion III
Champion III

can you post the script?

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
narender123
Specialist
Specialist
Author

Please see below cross table.script.jpg

narender123
Specialist
Specialist
Author

Please see my reply for Sunny.

sunny_talwar

Are you using a variable as your expression? May be you have to remove the equal sign from the variable.