<?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 Sort by expression or calculated dimension? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sort-by-expression-or-calculated-dimension/m-p/453573#M565710</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm quite new to QlickView, and I'm unable to find how to sort by expression or to create a relevant calculated dimension to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My data are the following one: I have a pivot table listing some fields used in an IT system for many banks, and not all banks use the same fields. I would like, for each field, have a column indicating if each bank uses it or not, and at the end count how many banks use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to either use a calculated dimension or an expression to flag if each bank use it (value 1, calculated this way: &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BU_PUBLIC_CLASS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='X',1,0) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to have the sum with the following expression:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;TOTAL_VISIB=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BU_PUBLIC_CLASS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='X',1,0)+&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BDL_LU_CLASS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='X',1,0)+&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BDL_BE_CLASS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='X',1,0)+&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CIC_CH_CLASS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='X',1,0)+&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BTB_CLASS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='X',1,0)+&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BTL_CLASS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='X',1,0)+&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CIC_SG_CLASS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;='X',1,0)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="27091" class="jive-image-thumbnail jive-image" onclick="" alt="Capture Qlickview.JPG" src="/legacyfs/online/27091_Capture Qlickview.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;but how can I select only the OBJ_CLASS_ID whose TOTAL_VISIB &amp;gt; 0? I want to be able to do a dropdown select if possible...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Dec 2012 17:20:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-12-19T17:20:55Z</dc:date>
    <item>
      <title>Sort by expression or calculated dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-by-expression-or-calculated-dimension/m-p/453573#M565710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm quite new to QlickView, and I'm unable to find how to sort by expression or to create a relevant calculated dimension to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My data are the following one: I have a pivot table listing some fields used in an IT system for many banks, and not all banks use the same fields. I would like, for each field, have a column indicating if each bank uses it or not, and at the end count how many banks use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to either use a calculated dimension or an expression to flag if each bank use it (value 1, calculated this way: &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BU_PUBLIC_CLASS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='X',1,0) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to have the sum with the following expression:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;TOTAL_VISIB=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BU_PUBLIC_CLASS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='X',1,0)+&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BDL_LU_CLASS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='X',1,0)+&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BDL_BE_CLASS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='X',1,0)+&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CIC_CH_CLASS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='X',1,0)+&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BTB_CLASS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='X',1,0)+&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;BTL_CLASS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='X',1,0)+&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CIC_SG_CLASS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;='X',1,0)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="27091" class="jive-image-thumbnail jive-image" onclick="" alt="Capture Qlickview.JPG" src="/legacyfs/online/27091_Capture Qlickview.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;but how can I select only the OBJ_CLASS_ID whose TOTAL_VISIB &amp;gt; 0? I want to be able to do a dropdown select if possible...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 17:20:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-by-expression-or-calculated-dimension/m-p/453573#M565710</guid>
      <dc:creator />
      <dc:date>2012-12-19T17:20:55Z</dc:date>
    </item>
  </channel>
</rss>

