<?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 - Sort table by Expression with Set Analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Sort-table-by-Expression-with-Set-Analysis/m-p/1323173#M28609</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If anyone is wondering, I solved this problem by using a work around. The original expression I used for the sorting was&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Match([Risk_Data.Current_Risk_Level], 'Very High', 'High', 'Medium', 'Low')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Instead of sorting by expression, I just added the value Risk_Weight to my source data in the load script ('Very High' = 1, 'High' = 2, etc) then sorted by the dimension.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I've run into the same type of problem in the same table with the same dimension but now it's with a background colour expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if([Risk_Data.Current_Risk_Level] = 'Very High', RGB(255, 45, 0),&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; if([Risk_Data.Current_Risk_Level] = 'High', RGB(255,105,0),&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Risk_Data.Current_Risk_Level] = 'Medium', RGB(255, 237, 0),&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;RGB(0, 178, 24))))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;When I select a value from an (ignored) dimension, only the risks, and therefore the risk level values, associated with the (ignored) dimension receive the proper colour - all others get the default value.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I tried loading the colour values into my source data in the load script and updated my colour expression to RGB(R, G, B), but then I just got black colours for the risks that weren't associated with my selection. It's definitely something about how/when the expression is evaluated (before the set analysis is applied??) that is causing the problems.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/163269_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone has any insights into the problem, feel free to share. I'm moving on and ignoring the colouring.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 13 May 2017 17:20:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-05-13T17:20:38Z</dc:date>
    <item>
      <title>Qlik Sense - Sort table by Expression with Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Sort-table-by-Expression-with-Set-Analysis/m-p/1323172#M28608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;So I have a table with several dimensions and a measure that uses set analysis to ignore selections from 2 select dimensions (Dimension=). This works - when I select from those ignored dimensions the data in the table is not filtered. In this table I also sort using a custom expression using the Match function. My problem is that when I make a selection from one of the ignored dimensions, my custom sorting breaks, but it doesn't break completely - the data is still grouped&amp;nbsp; as defined by the match function but the groups are not in the correct order as defined by the Match function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Any thoughts on this behaviour? I'm using QlikSense 3.2&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 May 2017 20:58:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Sort-table-by-Expression-with-Set-Analysis/m-p/1323172#M28608</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-10T20:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense - Sort table by Expression with Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Sort-table-by-Expression-with-Set-Analysis/m-p/1323173#M28609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If anyone is wondering, I solved this problem by using a work around. The original expression I used for the sorting was&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Match([Risk_Data.Current_Risk_Level], 'Very High', 'High', 'Medium', 'Low')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Instead of sorting by expression, I just added the value Risk_Weight to my source data in the load script ('Very High' = 1, 'High' = 2, etc) then sorted by the dimension.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I've run into the same type of problem in the same table with the same dimension but now it's with a background colour expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if([Risk_Data.Current_Risk_Level] = 'Very High', RGB(255, 45, 0),&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; if([Risk_Data.Current_Risk_Level] = 'High', RGB(255,105,0),&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([Risk_Data.Current_Risk_Level] = 'Medium', RGB(255, 237, 0),&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;RGB(0, 178, 24))))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;When I select a value from an (ignored) dimension, only the risks, and therefore the risk level values, associated with the (ignored) dimension receive the proper colour - all others get the default value.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I tried loading the colour values into my source data in the load script and updated my colour expression to RGB(R, G, B), but then I just got black colours for the risks that weren't associated with my selection. It's definitely something about how/when the expression is evaluated (before the set analysis is applied??) that is causing the problems.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/163269_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone has any insights into the problem, feel free to share. I'm moving on and ignoring the colouring.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 May 2017 17:20:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Sort-table-by-Expression-with-Set-Analysis/m-p/1323173#M28609</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-13T17:20:38Z</dc:date>
    </item>
  </channel>
</rss>

