<?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 Re: Making a custom sort filter with a calculated dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Making-a-custom-sort-filter-with-a-calculated-dimension/m-p/904123#M1017175</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can dual to set the number value of the size and sort it that way &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=if(Match(ARTIKEL_MAAT_ID, '28', '29', '30'), dual(('SMALL'') &amp;amp; Chr(10)&amp;amp; '(28, 29, 30)' ),1) &amp;amp;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(Match(ARTIKEL_MAAT_ID, '31', '32', '33'),&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;dual(&lt;/SPAN&gt;('MEDIUM'')&amp;amp; Chr(10)&amp;amp; '(31, 32, 33)')&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,2)&lt;/SPAN&gt; &amp;amp;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(Match(ARTIKEL_MAAT_ID, '34', '35'), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;dual(&lt;/SPAN&gt;('LARGE')&amp;amp; Chr(10)&amp;amp; '(34, 35)' )&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,3)&lt;/SPAN&gt;&amp;amp;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(Match(ARTIKEL_MAAT_ID, '36'), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;dual(&lt;/SPAN&gt;('XL')&amp;amp; Chr(10)&amp;amp; '(36)' )&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,4&lt;/SPAN&gt; &amp;amp;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(Match(ARTIKEL_MAAT_ID, '38'), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;dual(&lt;/SPAN&gt;('2XL'')&amp;amp; Chr(10)&amp;amp; '(38)' )&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,5)&lt;/SPAN&gt;&amp;amp;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(Match(ARTIKEL_MAAT_ID, '40','42'), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;dual(&lt;/SPAN&gt;('3XL'')&amp;amp; Chr(10)&amp;amp; '(40, 42)'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,6)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Apr 2015 16:25:57 GMT</pubDate>
    <dc:creator>ramoncova06</dc:creator>
    <dc:date>2015-04-13T16:25:57Z</dc:date>
    <item>
      <title>Making a custom sort filter with a calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Making-a-custom-sort-filter-with-a-calculated-dimension/m-p/904122#M1017174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The title is pretty self explanatory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the below calculated dimension. I want to compare jeans waist sizes to top sizes. So I match jeans waist sizes (ARTIKEL_MAAT_ID) 28,29 and 30 to size small for example. Below I have made all the matches. But now I want to make a custom sort order. So despite the outcome of the sum, I want to go from Small -&amp;gt; 3XL. Anyone has some advice on how to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Much appreciated,&lt;/P&gt;&lt;P&gt;Maarten&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Match(ARTIKEL_MAAT_ID, '28', '29', '30'), ('SMALL'') &amp;amp; Chr(10)&amp;amp; '(28, 29, 30)' ) &amp;amp; &lt;/P&gt;&lt;P&gt;if(Match(ARTIKEL_MAAT_ID, '31', '32', '33'),&amp;nbsp; ('MEDIUM'')&amp;amp; Chr(10)&amp;amp; '(31, 32, 33)') &amp;amp; &lt;/P&gt;&lt;P&gt;if(Match(ARTIKEL_MAAT_ID, '34', '35'), ('LARGE')&amp;amp; Chr(10)&amp;amp; '(34, 35)' )&amp;amp; &lt;/P&gt;&lt;P&gt;if(Match(ARTIKEL_MAAT_ID, '36'), ('XL')&amp;amp; Chr(10)&amp;amp; '(36)' ) &amp;amp; &lt;/P&gt;&lt;P&gt;if(Match(ARTIKEL_MAAT_ID, '38'), ('2XL'')&amp;amp; Chr(10)&amp;amp; '(38)' )&amp;amp; &lt;/P&gt;&lt;P&gt;if(Match(ARTIKEL_MAAT_ID, '40','42'), ('3XL'')&amp;amp; Chr(10)&amp;amp; '(40, 42)' )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 16:21:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-a-custom-sort-filter-with-a-calculated-dimension/m-p/904122#M1017174</guid>
      <dc:creator />
      <dc:date>2015-04-13T16:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Making a custom sort filter with a calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Making-a-custom-sort-filter-with-a-calculated-dimension/m-p/904123#M1017175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can dual to set the number value of the size and sort it that way &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=if(Match(ARTIKEL_MAAT_ID, '28', '29', '30'), dual(('SMALL'') &amp;amp; Chr(10)&amp;amp; '(28, 29, 30)' ),1) &amp;amp;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(Match(ARTIKEL_MAAT_ID, '31', '32', '33'),&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;dual(&lt;/SPAN&gt;('MEDIUM'')&amp;amp; Chr(10)&amp;amp; '(31, 32, 33)')&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,2)&lt;/SPAN&gt; &amp;amp;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(Match(ARTIKEL_MAAT_ID, '34', '35'), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;dual(&lt;/SPAN&gt;('LARGE')&amp;amp; Chr(10)&amp;amp; '(34, 35)' )&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,3)&lt;/SPAN&gt;&amp;amp;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(Match(ARTIKEL_MAAT_ID, '36'), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;dual(&lt;/SPAN&gt;('XL')&amp;amp; Chr(10)&amp;amp; '(36)' )&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,4&lt;/SPAN&gt; &amp;amp;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(Match(ARTIKEL_MAAT_ID, '38'), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;dual(&lt;/SPAN&gt;('2XL'')&amp;amp; Chr(10)&amp;amp; '(38)' )&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,5)&lt;/SPAN&gt;&amp;amp;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if(Match(ARTIKEL_MAAT_ID, '40','42'), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;dual(&lt;/SPAN&gt;('3XL'')&amp;amp; Chr(10)&amp;amp; '(40, 42)'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,6)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 16:25:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-a-custom-sort-filter-with-a-calculated-dimension/m-p/904123#M1017175</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-04-13T16:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Making a custom sort filter with a calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Making-a-custom-sort-filter-with-a-calculated-dimension/m-p/904124#M1017176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As&amp;nbsp; &lt;A href="https://community.qlik.com/qlik-users/127987"&gt;RamonCova06&lt;/A&gt;&amp;nbsp; has suggested, DUAL will allow you to show sizes in the correct order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a good explanation of using dual here&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-8106"&gt;How to use- Dual()&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 16:35:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-a-custom-sort-filter-with-a-calculated-dimension/m-p/904124#M1017176</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2015-04-13T16:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Making a custom sort filter with a calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Making-a-custom-sort-filter-with-a-calculated-dimension/m-p/904125#M1017177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can just sort on the dimension by using an expression&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ARTIKEL_MAAT_ID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Num(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ARTIKEL_MAAT_ID)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if this is text&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And should your calculated dimension not be more like this?&lt;/P&gt;&lt;P&gt;=if(Match(ARTIKEL_MAAT_ID, '28', '29', '30'), '(SMALL)' &amp;amp; Chr(10) &amp;amp; '(28, 29, 30)' ,&lt;/P&gt;&lt;P&gt;if(Match(ARTIKEL_MAAT_ID, '31', '32', '33'),&amp;nbsp; '(MEDIUM)'&amp;amp; Chr(10)&amp;amp; '(31, 32, 33)' ,&lt;/P&gt;&lt;P&gt;if(Match(ARTIKEL_MAAT_ID, '34', '35'), '(LARGE)'&amp;amp; Chr(10)&amp;amp; '(34, 35)',&lt;/P&gt;&lt;P&gt;if(Match(ARTIKEL_MAAT_ID, '36'), '(XL)' &amp;amp; Chr(10)&amp;amp; '(36)',&lt;/P&gt;&lt;P&gt;if(Match(ARTIKEL_MAAT_ID, '38'), '(2XL)'&amp;amp; Chr(10)&amp;amp; '(38)',&lt;/P&gt;&lt;P&gt;if(Match(ARTIKEL_MAAT_ID, '40','42'), '(3XL)'&amp;amp; Chr(10)&amp;amp; '(40, 42)'&lt;/P&gt;&lt;P&gt;))))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 16:43:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-a-custom-sort-filter-with-a-calculated-dimension/m-p/904125#M1017177</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2015-04-13T16:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Making a custom sort filter with a calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Making-a-custom-sort-filter-with-a-calculated-dimension/m-p/904126#M1017178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for the help. Correct answer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Match(ARTIKEL_MAAT_ID, '28', '29', '30'), DUAL('SMALL' &amp;amp; Chr(10)&amp;amp; '(28, 29, 30)' ,1), &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Match(ARTIKEL_MAAT_ID, '31', '32', '33'),&amp;nbsp; DUAL('MEDIUM'&amp;amp; Chr(10)&amp;amp; '(31, 32, 33)' ,2),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Match(ARTIKEL_MAAT_ID, '34', '35'), DUAL('LARGE'&amp;amp; Chr(10)&amp;amp; '(34, 35)' ,3),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Match(ARTIKEL_MAAT_ID, '36'), DUAL('XL'&amp;amp; Chr(10)&amp;amp; '(36)' ,4),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Match(ARTIKEL_MAAT_ID, '38'), DUAL('2XL'&amp;amp; Chr(10)&amp;amp; '(38)' ,5),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Match(ARTIKEL_MAAT_ID, '40','42'), DUAL('3XL'&amp;amp; Chr(10)&amp;amp; '(40, 42)' ,6)))))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I would only use the &amp;amp; sign to connect the lines it would only show the first one. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 07:34:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Making-a-custom-sort-filter-with-a-calculated-dimension/m-p/904126#M1017178</guid>
      <dc:creator />
      <dc:date>2015-04-14T07:34:06Z</dc:date>
    </item>
  </channel>
</rss>

