<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to create categorization list in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-create-categorization-list/m-p/1192523#M879185</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm quite new in qlik, and, as you may suppose, I have some problem and I'm not able to manage with this. The issue concern conversion from numerical value into text/list needed to fliter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below statement return number between search position:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14762635150118508 jive_text_macro" jivemacro_uid="_14762635150118508" modifiedtitle="true"&gt;
&lt;P&gt;only({&amp;lt;[promo_result.provider]={'skyscanner.pl'},Match={'T'},OstatniaOdpowiedz={'T'}&amp;gt;}[promo_result.position])&lt;/P&gt;
&lt;P&gt;-&lt;/P&gt;
&lt;P&gt;only({&amp;lt;[promo_result.provider]={'REGULAR'},Match={'T'},OstatniaOdpowiedz={'T'}&amp;gt;}[promo_result.position])&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;But it's a measure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'd like to do is a categorisation which based on the results of the difference. I thought that I managed in this case that way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create a text variable:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14762635461524162 jive_text_macro" jivemacro_uid="_14762635461524162" modifiedtitle="true"&gt;
&lt;P&gt;Text(only({&amp;lt;[promo_result.provider]={'skyscanner.pl'},Match={'T'},OstatniaOdpowiedz={'T'}&amp;gt;}[promo_result.position])&lt;/P&gt;
&lt;P&gt;-&lt;/P&gt;
&lt;P&gt;only({&amp;lt;[promo_result.provider]={'REGULAR'},Match={'T'},OstatniaOdpowiedz={'T'}&amp;gt;}[promo_result.position]))&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;named Position_diff_aggr&lt;/P&gt;&lt;P&gt;2. Use 'if' statement to create a filter list:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1476263591550935 jive_text_macro" jivemacro_uid="_1476263591550935" modifiedtitle="true"&gt;
&lt;P&gt;if ($(Position_diff_aggr) =0 ,'0',&lt;/P&gt;
&lt;P&gt;if($(Position_diff_aggr) &amp;gt; 0 and $(Position_diff_aggr) &amp;lt;= 3,'between 1-3 position'&lt;/P&gt;
&lt;P&gt;,&lt;/P&gt;
&lt;P&gt;if($(Position_diff_aggr) &amp;gt; 3 and $(Position_diff_aggr) &amp;lt;= 7, 'between 4-7 position'&lt;/P&gt;
&lt;P&gt;,&lt;/P&gt;
&lt;P&gt;if($(Position_diff_aggr) &amp;gt; 7 and $(Position_diff_aggr) &amp;lt;= 11, 'between 8-11 position'&lt;/P&gt;
&lt;P&gt;,&lt;/P&gt;
&lt;P&gt;if($(Position_diff_aggr) &amp;gt; 11 and $(Position_diff_aggr) &amp;lt;= 15, 'between 12-15 position'&lt;/P&gt;
&lt;P&gt;,&lt;/P&gt;
&lt;P&gt;if($(Position_diff_aggr) &amp;gt; 15 and $(Position_diff_aggr) &amp;lt;= 20, 'between 16-20 position'&lt;/P&gt;
&lt;P&gt;,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;if ($(Position_diff_aggr) &amp;gt; 20 ,'greater than 20'&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;)))))))&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;But the result of the second step didin't work as a dimension but still as a measure, so I can not use it as a filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any ideas how to managed with this issue ?&lt;/P&gt;&lt;P&gt;All ideas will be helpful for me, cause I have no idea why Qlik doesn't work in my case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Ola&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>How to create categorization list</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-categorization-list/m-p/1192523#M879185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm quite new in qlik, and, as you may suppose, I have some problem and I'm not able to manage with this. The issue concern conversion from numerical value into text/list needed to fliter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below statement return number between search position:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14762635150118508 jive_text_macro" jivemacro_uid="_14762635150118508" modifiedtitle="true"&gt;
&lt;P&gt;only({&amp;lt;[promo_result.provider]={'skyscanner.pl'},Match={'T'},OstatniaOdpowiedz={'T'}&amp;gt;}[promo_result.position])&lt;/P&gt;
&lt;P&gt;-&lt;/P&gt;
&lt;P&gt;only({&amp;lt;[promo_result.provider]={'REGULAR'},Match={'T'},OstatniaOdpowiedz={'T'}&amp;gt;}[promo_result.position])&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;But it's a measure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'd like to do is a categorisation which based on the results of the difference. I thought that I managed in this case that way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create a text variable:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14762635461524162 jive_text_macro" jivemacro_uid="_14762635461524162" modifiedtitle="true"&gt;
&lt;P&gt;Text(only({&amp;lt;[promo_result.provider]={'skyscanner.pl'},Match={'T'},OstatniaOdpowiedz={'T'}&amp;gt;}[promo_result.position])&lt;/P&gt;
&lt;P&gt;-&lt;/P&gt;
&lt;P&gt;only({&amp;lt;[promo_result.provider]={'REGULAR'},Match={'T'},OstatniaOdpowiedz={'T'}&amp;gt;}[promo_result.position]))&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;named Position_diff_aggr&lt;/P&gt;&lt;P&gt;2. Use 'if' statement to create a filter list:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1476263591550935 jive_text_macro" jivemacro_uid="_1476263591550935" modifiedtitle="true"&gt;
&lt;P&gt;if ($(Position_diff_aggr) =0 ,'0',&lt;/P&gt;
&lt;P&gt;if($(Position_diff_aggr) &amp;gt; 0 and $(Position_diff_aggr) &amp;lt;= 3,'between 1-3 position'&lt;/P&gt;
&lt;P&gt;,&lt;/P&gt;
&lt;P&gt;if($(Position_diff_aggr) &amp;gt; 3 and $(Position_diff_aggr) &amp;lt;= 7, 'between 4-7 position'&lt;/P&gt;
&lt;P&gt;,&lt;/P&gt;
&lt;P&gt;if($(Position_diff_aggr) &amp;gt; 7 and $(Position_diff_aggr) &amp;lt;= 11, 'between 8-11 position'&lt;/P&gt;
&lt;P&gt;,&lt;/P&gt;
&lt;P&gt;if($(Position_diff_aggr) &amp;gt; 11 and $(Position_diff_aggr) &amp;lt;= 15, 'between 12-15 position'&lt;/P&gt;
&lt;P&gt;,&lt;/P&gt;
&lt;P&gt;if($(Position_diff_aggr) &amp;gt; 15 and $(Position_diff_aggr) &amp;lt;= 20, 'between 16-20 position'&lt;/P&gt;
&lt;P&gt;,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;if ($(Position_diff_aggr) &amp;gt; 20 ,'greater than 20'&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;)))))))&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;But the result of the second step didin't work as a dimension but still as a measure, so I can not use it as a filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any ideas how to managed with this issue ?&lt;/P&gt;&lt;P&gt;All ideas will be helpful for me, cause I have no idea why Qlik doesn't work in my case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Ola&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-categorization-list/m-p/1192523#M879185</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to create categorization list</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-categorization-list/m-p/1192524#M879186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you could use a equally bucket-size you could use a calculated dimension like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=class(aggr($(Position_diff_aggr), Dim1, Dim2), 3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not you could use something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pick(match(aggr(floor($(Position_diff_aggr)), Dim1, Dim2), 0,1,2,3,4,5,6,7,8,....),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual('0', 1),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual('between 1-3 position', 2), dual('between 1-3 position', 2), dual('between 1-3 position', 2),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual('between 4-7 position', 3), dual('between 4-7 position', 3), dual('between 4-7 position', 3),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual('between 4-7 position', 3), ....)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See also: &lt;A href="https://community.qlik.com/qlik-blogpost/3676"&gt;Calculated Dimensions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 07:12:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-categorization-list/m-p/1192524#M879186</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-10-13T07:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to create categorization list</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-create-categorization-list/m-p/1192525#M879187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is this Problem, Can you please post expression on wall&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; background-color: #f8f8f8;"&gt;Position_diff_aggr&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2016 07:30:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-create-categorization-list/m-p/1192525#M879187</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-10-13T07:30:30Z</dc:date>
    </item>
  </channel>
</rss>

