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

Invoice Amount in Specific Price Range

Hi all

I have a table like this:

InvoiceItemAmount
1A3SGH560
1B6REW327
1B45WR321
2NG2432654
2NH354987
3NGWR4159
3O356GX753
3N46T357
3P56R483
4RTY5653127
4C1E1356982
4HH67M357
5UY8743586
5RG243584
5MNL885542
5G5462S532

So, I have this:

InvoiceTotal Amount
11,208
21,641
31,752
41,466
52244

Now I want the number of invoice in specific price range. Like this table:

Invioce Amount Range (IAR)No. of Invoice
IAR < 10000
1000 < IAR < 15001
1500 < IAR < 20003
2000 < IAR1

Please help me.

Thank you in advance.

Regards,

Ashkan

1 Solution

Accepted Solutions
Not applicable
Author

Hi,

I have used thes traight table and the calculated dimension would be as below:

 

=Class(Aggr(sum(Amount),Invoice),500, 'IVR',500)

and the expression is

 

Count

( DISTINCT Invoice)

View solution in original post

5 Replies
Not applicable
Author

Hi,

May be this can help you.

Not applicable
Author

Hi venugopal4s

Thanks for your reply

Could you please write the script? I'm using Qlikview PE and I can't open other .qvw files.

Not applicable
Author

Hi,

I have used thes traight table and the calculated dimension would be as below:

 

=Class(Aggr(sum(Amount),Invoice),500, 'IVR',500)

and the expression is

 

Count

( DISTINCT Invoice)

khadeer
Specialist
Specialist

Hi,

First create bucket like if(sum(Amount)<1000, 'IAR<1000', if(sum(Amount)>1000 and sum(Amount)<=1500,'1000 < IAR < 1500')) like other also in calculated dimension.  and use an expression as Sount(Distinct(Invoice)) in expression.

Regards,

Khadeer

Not applicable
Author

@venugopal4s

Thank you so much my friend.