Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Categorization of Parameters!

Hi All,

I have a table like this.

CategoryNumber% Change
120002
1.10110003
1.10210004
1.220005
1.20110006
1.2025007
1.2035008
1.330002
1.30110003
1.30210004
1.30310005
240006
2.20115007
2.20215008
2.20310002
350003
3.30115004
3.30215005
3.30320006

I want to create an application where in list box Only Parent category will be shown like1,2,3. Now if i select 1, subcategories(1.1,1.2,1.3) will be shown in corresponding charts.Like wise we can drill down to other categories.

Is there any way of doing this? I dont want to show data in a single pivot table. I want o create charts.

Thanks.

2 Replies
Clever_Anjos
Employee
Employee

Create another field into your script using

subfield(Category,'.',1) as ParentCategory

Peter_Cammaert
Partner - Champion III
Partner - Champion III

Or, as a variation to the above, create this other field in your script using

floor(Category) as ParentCategory

to get the integer part as main category.

The advantage of using floor() is that you can also create intermediate categories,. For example

floor(Category, 0.1) as IntermediateCategory

will turn 1.203 into 1.2, 2.109 into 2.1 etc.

Peter