<?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 - Changing dimensions based on selections in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Changing-dimensions-based-on-selections/m-p/1381421#M31411</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Mohammed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response.&amp;nbsp; I had already tried this but was hoping to avoid using &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;GetSelectedCount since, as the user makes his selections,&amp;nbsp; it's possible that he will not make a selection from all fields, in which case, the number selected will be 0, but the count will be more than 1.&amp;nbsp; However, I see that GetSelectedCount does not lead to an invalid dimension message, so this might be the only way, along with a message telling the user to select at least one from each filter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the result using if(GetSelectedCount(...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Changing Dimension Based on Selection or Available Values- OK.PNG" class="jive-image image-1" src="/legacyfs/online/179907_Changing Dimension Based on Selection or Available Values- OK.PNG" style="height: 223px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Here is the result using if(Count(....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Changing Dimension Based on Selection or Available Values- NOK.PNG" class="jive-image image-2" src="/legacyfs/online/179908_Changing Dimension Based on Selection or Available Values- NOK.PNG" style="height: 184px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea why using the same formula but just switching GetSelectedCount() for Count() would cause this behaviour.&amp;nbsp; Without further information, it looks like a bug to me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Oct 2017 10:11:26 GMT</pubDate>
    <dc:creator>rbartley</dc:creator>
    <dc:date>2017-10-17T10:11:26Z</dc:date>
    <item>
      <title>Qlik Sense - Changing dimensions based on selections</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Changing-dimensions-based-on-selections/m-p/1381419#M31409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Qlik Sense app with a number of fields in the selection panel and a line chart.&amp;nbsp; The chart has two dimensions: the time dimension and the reference period, which allows me to compare prices over different years, with each year represented by a different line.&amp;nbsp; To prevent the lines showing averages, I have a calculation condition which forces the user to make a number of selections.&amp;nbsp; However, because of the number of dimensions and the length of the text, the legend is extremely long and so, I would like to be able to choose which fields appear in the legend, e.g. if(count(field a)&amp;gt;1,field a,if(count(field b)&amp;gt;1,field b,etc.....&amp;nbsp; However, when I try to implement this, it returns an invalid dimension. Does anyone know whether it is possible to change the field (not the value) based on the number of selections from a given field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 08:49:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Changing-dimensions-based-on-selections/m-p/1381419#M31409</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2017-10-17T08:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense - Changing dimensions based on selections</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Changing-dimensions-based-on-selections/m-p/1381420#M31410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Richard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you Try &lt;SPAN style="font-size: 13.3333px;"&gt;GetSelectedCount function:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you try if(GetSelectedCount([&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;field a]&lt;/SPAN&gt;)&amp;gt;=1,&lt;SPAN style="font-size: 13.3333px;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;field a]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;if(GetSelectedCount([&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;field b]&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;)&amp;gt;=1,&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;field b]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,&amp;nbsp; Etc&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;&lt;BR /&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 it's not helpful then attach sample data file.&lt;BR /&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;&lt;BR /&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;Thanks,&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;Mukram&lt;BR /&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;&lt;BR /&gt;&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;&lt;BR /&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 09:43:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Changing-dimensions-based-on-selections/m-p/1381420#M31410</guid>
      <dc:creator>mdmukramali</dc:creator>
      <dc:date>2017-10-17T09:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense - Changing dimensions based on selections</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Changing-dimensions-based-on-selections/m-p/1381421#M31411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Mohammed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response.&amp;nbsp; I had already tried this but was hoping to avoid using &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;GetSelectedCount since, as the user makes his selections,&amp;nbsp; it's possible that he will not make a selection from all fields, in which case, the number selected will be 0, but the count will be more than 1.&amp;nbsp; However, I see that GetSelectedCount does not lead to an invalid dimension message, so this might be the only way, along with a message telling the user to select at least one from each filter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the result using if(GetSelectedCount(...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Changing Dimension Based on Selection or Available Values- OK.PNG" class="jive-image image-1" src="/legacyfs/online/179907_Changing Dimension Based on Selection or Available Values- OK.PNG" style="height: 223px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Here is the result using if(Count(....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Changing Dimension Based on Selection or Available Values- NOK.PNG" class="jive-image image-2" src="/legacyfs/online/179908_Changing Dimension Based on Selection or Available Values- NOK.PNG" style="height: 184px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea why using the same formula but just switching GetSelectedCount() for Count() would cause this behaviour.&amp;nbsp; Without further information, it looks like a bug to me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 10:11:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Changing-dimensions-based-on-selections/m-p/1381421#M31411</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2017-10-17T10:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense - Changing dimensions based on selections</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Changing-dimensions-based-on-selections/m-p/1381422#M31412</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;Can you have quick try with &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;GetPossibleCount()&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 10:17:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Changing-dimensions-based-on-selections/m-p/1381422#M31412</guid>
      <dc:creator>mdmukramali</dc:creator>
      <dc:date>2017-10-17T10:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense - Changing dimensions based on selections</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Changing-dimensions-based-on-selections/m-p/1381423#M31413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohammed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, that works well, thanks.&amp;nbsp; Do you have any idea why simply using Count does not work? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 11:10:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Changing-dimensions-based-on-selections/m-p/1381423#M31413</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2017-10-17T11:10:24Z</dc:date>
    </item>
  </channel>
</rss>

