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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
upaliwije
Creator II
Creator II

sum

I have attached a QV document with two straight table

Claim_Nocount(DISTINCT Claim_No)
11
21
31
41
51
61
71
91
8
Rangecount(DISTINCT Claim_No)
200-3002
300-4002
400-5002
100-2003
>5005
14

In one table total count is 8 where as in the it is 14 against range. I want to show show total as 8 in Range table also. pls help me

Labels (1)
17 Replies
upaliwije
Creator II
Creator II
Author

I like to know both ways

sunny_talwar
MVP
MVP

Script method using group by statement:

claim:

load * inline [

Claim_No, Amount,

1 ,100

2 ,200

3 ,300

4 ,400

5 ,500

6 ,600

7 ,100

9 ,200

1 ,300

1 ,400

2 ,500

3 ,600

4 ,400

4 ,800

4 ,100

5 ,500

6 ,700

];

Join(claim)

LOAD Claim_No,

  Sum(Amount) as TotalAmt

Resident claim

Group By Claim_No;

Join(claim)

load

Claim_No,

Amount,

if(TotalAmt>=0 and TotalAmt<100, '0-100',

if(TotalAmt>=100 and TotalAmt<200, '100-200',

if(TotalAmt>=200 and TotalAmt<300, '200-300',

if(TotalAmt>=300 and TotalAmt<400, '300-400',

if(TotalAmt>=400 and TotalAmt<500, '400-500',

if(TotalAmt>=500 , '>500'))))))as Range

resident claim;

sunny_talwar
MVP
MVP

Here is how you do this in the front end (PFA)

HTH

Best,

Sunny

upaliwije
Creator II
Creator II
Author

Thanks a lot for all

sunny_talwar
MVP
MVP

Not a problem.

Best,

Sunny

upaliwije
Creator II
Creator II
Author

Can You please tell me how to assign a name for calculated dimension

sunny_talwar
MVP
MVP

Look at the image:

Label.PNG.

HTH

Best,

Sunny

upaliwije
Creator II
Creator II
Author

Tks