Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Mt3
Contributor III
Contributor III

Dimension - numeric intervals - chart function

Hi,

I am trying to define dimension names basing on numeric intervals on charts.

Intervals will need to be defined manually, directly on chart.

if((A between 1 and 2),'First interval')

if((C between 3 and 4),'Second interval')

I have been unsuccesfully searching for 'between' replacement in qliksense, but did not find any.

 

How would you suggest to tackle that?

Labels (1)
4 Replies
QFabian
Specialist III
Specialist III

Hi @Mt3 , here a couple of options.

In script try the intervalmatch function, in charts try the rank function

intervalmatch

https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptPrefixes...

 

rank

https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/RankingFu...

 

QFabian
Mt3
Contributor III
Contributor III
Author

Thank you for the hint! Thing is, i need to define intervals manually in the chart, guess the rank function will not work here. 

MarcoWedel

what do you mean by "define intervals manually in the chart"?

QFabian
Specialist III
Specialist III

Hi @Mt3 , i tried this :

QFabian_0-1664550399387.png

 

Data

Data:
Load * INLINE [
Field1, Field2
1, 34
2, 65
3, 87
4, 345
5, 98
6, 23
7, 76
8, 21
9, 32
10, 89
];

Bar Chart Dimension

=if(Field1 >= 1 and Field1 <=4 , 'A',
if(Field1 >= 5 and Field1 >= 8 , 'B','C'))

bar chart measure 

Sum(Field2)

QFabian