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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
tracycrown
Creator III
Creator III

Grouping

Dear all

Kindly advise the solution for the issues below:

Q1. Why 10 is in Range 1-2 of column 2 & 9 is missing ?
Q2. Why total number in column 3 cannot be computed ?. 

Correct Answer :

Grade RangeGradeTotal Number
1 - 213
 22
3 - 432
 48
5 - 652
 64
7 - 871
 84
9 - 1093
 101

 

Thank you so much, Tracy

Labels (1)
2 Solutions

Accepted Solutions
edwin
Master II
Master II

its because Grade is loaded as text.  there are a couple of ways to address this:
use 

=if(num#(Grade)>=Lower and num#(Grade)<=Upper,Grade)

  or during load 

load
num#(Grade) as Grade,
...

View solution in original post

edwin
Master II
Master II

or you can fix your original data source, maybe it is configured as text or there's a space or something

View solution in original post

6 Replies
edwin
Master II
Master II

its because Grade is loaded as text.  there are a couple of ways to address this:
use 

=if(num#(Grade)>=Lower and num#(Grade)<=Upper,Grade)

  or during load 

load
num#(Grade) as Grade,
...
edwin
Master II
Master II

or you can fix your original data source, maybe it is configured as text or there's a space or something

tracycrown
Creator III
Creator III
Author

Dear Edwin

Thank you so much for your quick response and best advice. I tried to modify it at source but it does not work, please advise ?.

CrossTable(num#(Grade), AData)
LOAD * FROM
[Test-1.xlsx]
(ooxml, embedded labels, table is Analysis);

Thank you very much, Tracy

 

edwin
Master II
Master II

as i said you can address this in load script, add the conversion 

num#(Grade) as Grade
edwin
Master II
Master II

you will of course enumerate your fields and not use * 

tracycrown
Creator III
Creator III
Author

Thank you very much for your kind advice.