<?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: Qlik Sense does not sort &amp;quot;stacked&amp;quot; bar chart correctly?! in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-does-not-sort-quot-stacked-quot-bar-chart-correctly/m-p/895796#M12430</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agree with Gysbert.&amp;nbsp; The &amp;lt;Total&amp;gt; is an instruction to determine the LEVEL of aggregation , it doesn't change the actual aggegation function ( count) that is being used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #666666;"&gt;Count( total &amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;recruiter&amp;gt;&lt;/SPAN&gt;&amp;nbsp; &lt;STRONG&gt;Distinct&lt;/STRONG&gt; {&amp;lt;[Status of Candidate]-={'Completed'}&amp;gt;} Key_Requisition_Candidate)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Apr 2015 18:11:48 GMT</pubDate>
    <dc:creator>JonnyPoole</dc:creator>
    <dc:date>2015-04-10T18:11:48Z</dc:date>
    <item>
      <title>Qlik Sense does not sort "stacked" bar chart correctly?!</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-does-not-sort-quot-stacked-quot-bar-chart-correctly/m-p/895791#M12425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I try to display active requisitions by recruiters and different steps of the recruiting process. I am using Qlik Sense desktop version 1.1.0+, build 31.QSMS10-CIGS. Here are my steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Add a bar chart.&lt;/P&gt;&lt;P&gt;2. Add "active requisition" measure.&lt;/P&gt;&lt;P&gt;3. Add "recruiter" dimension. The resulting dimension is enclosed below. So far, the chart is correct.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" height="254" src="https://community.qlik.com/legacyfs/online/83374_Capture.PNG" style="height: 254px; width: 285.509px;" width="286" /&gt;&lt;/P&gt;&lt;P&gt;4. Now, I drag "step of candidate", click "add" to add it as the second dimension, and select "stacked bar chart" presentation. Here is the chart I got.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" height="257" src="https://community.qlik.com/legacyfs/online/83384_Capture.PNG" style="height: 256.742px; width: 294px;" width="294" /&gt;&lt;/P&gt;&lt;P&gt;5. Here is the problem #1. If I try to drag "Total Active Requisitions" over or above "Recruiter", I cannot make "Total Active Requisitions" as priority 1 for sorting.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-3" height="100" src="https://community.qlik.com/legacyfs/online/83385_Capture.PNG" style="height: 99.792px; width: 162px;" width="162" /&gt;&lt;/P&gt;&lt;P&gt;6. Problem #2: If I change "Recruiter" to custom sorting, and add the expression of "Total Active Requisitions" as a descending condition, the bar chart is still not sorted correctly. I expect the bar chart to be sorted in descending order of the total active requisitions by recruiters.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="image-4 jive-image" height="361" src="https://community.qlik.com/legacyfs/online/83386_Capture.PNG" style="height: 361px; width: 167.655px;" width="168" /&gt;&lt;IMG alt="Capture.PNG" class="image-5 jive-image" height="262" src="https://community.qlik.com/legacyfs/online/83387_Capture.PNG" style="height: 262px; width: 417.653px;" width="418" /&gt;&lt;/P&gt;&lt;P&gt;How do I make this work in Qlik Sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 16:56:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-does-not-sort-quot-stacked-quot-bar-chart-correctly/m-p/895791#M12425</guid>
      <dc:creator />
      <dc:date>2015-04-10T16:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense does not sort "stacked" bar chart correctly?!</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-does-not-sort-quot-stacked-quot-bar-chart-correctly/m-p/895792#M12426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to switch the sorting of the first dimension from Auto to custom&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then select expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And enter an expression that aggregates the measure by the 1st dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the sample below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim1:&amp;nbsp; Country&lt;/P&gt;&lt;P&gt;Dim2: City&lt;/P&gt;&lt;P&gt;Measure:&amp;nbsp; sum(Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sort expression for Dim1:&amp;nbsp; sum( total &amp;lt;Country&amp;gt; Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/83380_Capture.PNG" style="height: 486px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 17:38:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-does-not-sort-quot-stacked-quot-bar-chart-correctly/m-p/895792#M12426</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-04-10T17:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense does not sort "stacked" bar chart correctly?!</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-does-not-sort-quot-stacked-quot-bar-chart-correctly/m-p/895793#M12427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I try something similar to yours. In my data, "Distinct" would be more appropriate than "Total". Besides, I need the chart to work with other filters selected, not ignoring them, so I cannot use "Total".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It temporarily solves the problem, if I add "Distinct" to my expression as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(&lt;STRONG&gt;Distinct&lt;/STRONG&gt; {&amp;lt;[Status of Candidate]-={'Completed'}&amp;gt;} Key_Requisition_Candidate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, if I removed "Distinct" in the expression as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;[Status of Candidate]-={'Completed'}&amp;gt;} Key_Requisition_Candidate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem shows up again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why the distinct/total modifier makes a difference here, if Qlik Sense should sort bars based on the values calculated no matter what formula we use? Qlik Sense does not seem to respect the calculated values, when distinct/total modifier is not used, when set analysis is involved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 17:53:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-does-not-sort-quot-stacked-quot-bar-chart-correctly/m-p/895793#M12427</guid>
      <dc:creator />
      <dc:date>2015-04-10T17:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense does not sort "stacked" bar chart correctly?!</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-does-not-sort-quot-stacked-quot-bar-chart-correctly/m-p/895794#M12428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you're misunderstanding what TOTAL does. Adding &lt;EM&gt;TOTAL &amp;lt;recruiter&amp;gt;&lt;/EM&gt; to your expression will make it calculate the count values at the level of the recruiter dimension instead of at the level of the combination of the two dimensions {recruiter,&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;step of candidate}.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 18:06:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-does-not-sort-quot-stacked-quot-bar-chart-correctly/m-p/895794#M12428</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-04-10T18:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense does not sort "stacked" bar chart correctly?!</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-does-not-sort-quot-stacked-quot-bar-chart-correctly/m-p/895795#M12429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figure out the source of the problem. The measure of my chart is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(Distinct {&amp;lt;[Status of Candidate]-={'Completed'}&amp;gt;} Key_Requisition_Candidate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression of my sort is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;[Status of Candidate]-={'Completed'}&amp;gt;} Key_Requisition_Candidate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is why the sorting is not working as expected. I wish Qlik Sense has a way to drag my measure and drop to the sorting expression to avoid the problem. Because I have to type the sorting expression manually, I missed the "distinct" in my expression. So, Qlik Sense is working as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all for your feedback.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 18:11:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-does-not-sort-quot-stacked-quot-bar-chart-correctly/m-p/895795#M12429</guid>
      <dc:creator />
      <dc:date>2015-04-10T18:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense does not sort "stacked" bar chart correctly?!</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-does-not-sort-quot-stacked-quot-bar-chart-correctly/m-p/895796#M12430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agree with Gysbert.&amp;nbsp; The &amp;lt;Total&amp;gt; is an instruction to determine the LEVEL of aggregation , it doesn't change the actual aggegation function ( count) that is being used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #666666;"&gt;Count( total &amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;recruiter&amp;gt;&lt;/SPAN&gt;&amp;nbsp; &lt;STRONG&gt;Distinct&lt;/STRONG&gt; {&amp;lt;[Status of Candidate]-={'Completed'}&amp;gt;} Key_Requisition_Candidate)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 18:11:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-does-not-sort-quot-stacked-quot-bar-chart-correctly/m-p/895796#M12430</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-04-10T18:11:48Z</dc:date>
    </item>
  </channel>
</rss>

