Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
newqlik2017
Creator II
Creator II

Create a range or bands in qlikview chart

Any suggestions on creating a low and high band/range in qlikview charts like below? 

Limit Band
LowHighMetric 1Metric 2Metric 3
0 0.5M
                0.5M                    1.0M
                1.0M                    1.5M
                1.5M                    2.0M
                2.0M                    2.5M
                2.5M                    5.0M
                5.0M                    7.5M
                7.5M                  10.0M
              10.0M                  15.0M
              15.0M                  20.0M
              20.0M                  25.0M
              25.0M                  50.0M
              50.0M                100.0M
               100.0M
Total
5 Replies
Anil_Babu_Samineni

Not sure, What is the question here?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Yes it is possible using If statements in Script.

Regards,
Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
zebhashmi
Specialist
Specialist

May be that can help

Class function

newqlik2017
Creator II
Creator II
Author

So, here's what I'm looking for

The metrics (Metric 1, Metric 2) on the table are expressions.

The low and high bands is dimension. I got the count of accounts and account balance from the sql script. Now, I need to assign values for Metric 1 and Metric 2 to the respective bands. For examples,

if there are 3 accounts with the account balance of 300,000 for a given policy then it would be 0-0.5M band 
if there are 5 accounts with the account balance of 900,000 for a given policy then it would be 0.5-1.0M band

if there are 10 accounts with the account balance of 1,500,000 for a given polity then it would be 1.5-2.0M band and so forth....

My goal is how to create the band and should it based on the account balance field or can I also somewhere create an island table and link to the main table somehow?

   

BandMetric 1Metric 2
LowHighCount of accountsAccount Balance
0 M0.5 M 3 300,000
0.5 M1.0 M 5 900,000
1.5 M2.0 M 10 1,500,000
2.0 M2.5 M
2.5 M5.0 M
5.0 M7.5 M
7.5 M10.0 M
10.0 M15.0 M

 

Thanks

newqlik2017
Creator II
Creator II
Author

Not sure if I can use class function as my intervals are not always the same.