<?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: If statement in calculated dimension breaks the selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-statement-in-calculated-dimension-breaks-the-selection/m-p/1230837#M392246</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you trying to do something like this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-6046"&gt;Customisable Straight (and Pivot) Tables - more food for thought&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-6223"&gt;User Customisable Data View with Interactive Sort Order&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 05 Mar 2017 11:12:44 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2017-03-05T11:12:44Z</dc:date>
    <item>
      <title>If statement in calculated dimension breaks the selection</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-calculated-dimension-breaks-the-selection/m-p/1230828#M392237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table with conditionals shows.&lt;/P&gt;&lt;P&gt;The enduser can select which dimensions he wants to view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make it possible i have a listbox (data island) where selections can be made. This works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now i want to make it more end-user friendly (in the end solutions there are alot of fields to select), i want to split the listboxes.&lt;/P&gt;&lt;P&gt;I do this by adding a calculated dimension to the listbox &lt;SPAN style="font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="s1" style="font-size: 10pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-size: 10pt;"&gt;Tag&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = 'Order',&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-size: 10pt;"&gt;Field&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is then that is it NOT possible to select a field in both listboxes. So it's not possible to select a field in the client list and a field in the order list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to create a data-island for both client and orders. This will work, but the thing is that i need to proper sort order of the dimensions. And this is a mix of both client fields and order fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attachment ! Thanks in advanced&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 23:05:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-calculated-dimension-breaks-the-selection/m-p/1230828#M392237</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2017-03-03T23:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in calculated dimension breaks the selection</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-calculated-dimension-breaks-the-selection/m-p/1230829#M392238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can solve it with some Alternate States trickery (see attachment). It is a bit elaborate, though, maybe someone else has a better idea (something relying on the order of dimensions as defined in the table would be a little simpler, but I take it you want the order to be fully controlable by the #Sort value, so it wouldn't cut it).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note it is not possible to have the Current Selections box work with it (Current Selections cannot show selections combined over multiple states)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Mar 2017 14:48:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-calculated-dimension-breaks-the-selection/m-p/1230829#M392238</guid>
      <dc:creator>kuba_michalik</dc:creator>
      <dc:date>2017-03-04T14:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in calculated dimension breaks the selection</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-calculated-dimension-breaks-the-selection/m-p/1230830#M392239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;I tried to create a data-island for both client and orders. This will work, but the thing is that i need to proper sort order of the dimensions. And this is a mix of both client fields and order fields.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I think might be a good approach, I wonder what issue were you having with the proper sort order. Would you be able to expand on this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Mar 2017 18:01:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-calculated-dimension-breaks-the-selection/m-p/1230830#M392239</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-04T18:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in calculated dimension breaks the selection</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-calculated-dimension-breaks-the-selection/m-p/1230831#M392240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, i tried this, but i need all the selections in the Current SelectionBox&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Mar 2017 18:02:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-calculated-dimension-breaks-the-selection/m-p/1230831#M392240</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2017-03-04T18:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in calculated dimension breaks the selection</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-calculated-dimension-breaks-the-selection/m-p/1230832#M392241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be use a current selection box alternative to show selections in both inherited and alternative state:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-7118"&gt;Current Selection Alternatives&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Mar 2017 18:04:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-calculated-dimension-breaks-the-selection/m-p/1230832#M392241</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-04T18:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in calculated dimension breaks the selection</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-calculated-dimension-breaks-the-selection/m-p/1230833#M392242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because of this string in the dimension :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;=&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;$(=('[' &amp;amp; Trim(SubField(Concat(Field,'|',#Sort),'|',1))) &amp;amp; ']') &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;here is where i use the sort thing. So the first Field should be used for Dim1 in the chart. And the second field becomes Dim2. All based on the sort order. The thing is that Dim1 can be something from the Client table. While Dim2 can be in the Order Table. Therefor i need the Sort field in 1 table. &lt;/P&gt;&lt;P class="p1"&gt;&lt;/P&gt;&lt;P class="p1"&gt;If you can create a String with all the selected field in AND the right sort order, what will be fine too.But i can only use 1 #Sort field in the Concat. #Sort is a number btw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Mar 2017 18:09:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-calculated-dimension-breaks-the-selection/m-p/1230833#M392242</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2017-03-04T18:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in calculated dimension breaks the selection</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-calculated-dimension-breaks-the-selection/m-p/1230834#M392243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This might work, but not ideal, because i need to have like 25 alternate startes. It's not only Orders and Client, but alot more categories.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Mar 2017 18:12:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-calculated-dimension-breaks-the-selection/m-p/1230834#M392243</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2017-03-04T18:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in calculated dimension breaks the selection</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-calculated-dimension-breaks-the-selection/m-p/1230835#M392244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be if you want the dimensions to show up in a specific order, you can try using this technique may be?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Mar 2017 01:30:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-calculated-dimension-breaks-the-selection/m-p/1230835#M392244</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-05T01:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in calculated dimension breaks the selection</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-calculated-dimension-breaks-the-selection/m-p/1230836#M392245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no. . because i have like 500-700 dimensions .. which makes it impossible to maintain &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Mar 2017 08:39:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-calculated-dimension-breaks-the-selection/m-p/1230836#M392245</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2017-03-05T08:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in calculated dimension breaks the selection</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-calculated-dimension-breaks-the-selection/m-p/1230837#M392246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you trying to do something like this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-6046"&gt;Customisable Straight (and Pivot) Tables - more food for thought&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-6223"&gt;User Customisable Data View with Interactive Sort Order&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Mar 2017 11:12:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-calculated-dimension-breaks-the-selection/m-p/1230837#M392246</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2017-03-05T11:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in calculated dimension breaks the selection</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-calculated-dimension-breaks-the-selection/m-p/1230838#M392247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its basicly the samen solution. The NorthWind solution give order in the Dimension selections using a treeView. i want the same thing, but the with separate listboxes (which i can put in a container).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Mar 2017 11:59:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-calculated-dimension-breaks-the-selection/m-p/1230838#M392247</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2017-03-05T11:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in calculated dimension breaks the selection</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-calculated-dimension-breaks-the-selection/m-p/1230839#M392248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you'll have to combine it with this technique of using alternate states then: &lt;A href="https://community.qlik.com/thread/69336"&gt;Using Alternate States to Select Multiple Values in a List Box with Different Attributes&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Mar 2017 17:55:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-calculated-dimension-breaks-the-selection/m-p/1230839#M392248</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2017-03-05T17:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in calculated dimension breaks the selection</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-calculated-dimension-breaks-the-selection/m-p/1230840#M392249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not &lt;EM&gt;necessarily&lt;/EM&gt; impossible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could write a macro that would remove all dimensions from the table, then add them back in order specified in the data, with the proper show/hide conditions referring to an appropriate data island, based on value of the Tag field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would not be a user-facing macro - only the developer would have to run it when the dimension sort order was changed, so most of the usual caveats about using macros in Qlikview would not apply. If you don't have a specific requirement about rearranging the dimensions by updating e.g. a spreadsheet, without any developer input, then this could be a pretty maintainable solution. But then again, I'm not sure how well would a table with 700 dimensions work, even if 99% of them were conditionally disabled &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2017 09:00:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-calculated-dimension-breaks-the-selection/m-p/1230840#M392249</guid>
      <dc:creator>kuba_michalik</dc:creator>
      <dc:date>2017-03-06T09:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in calculated dimension breaks the selection</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-calculated-dimension-breaks-the-selection/m-p/1230841#M392250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And here's my third and (I think) final brilliant idea &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Summary: data islands, use set analysis to merge selections in data islands into a selection on the main Field field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2017 09:30:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-calculated-dimension-breaks-the-selection/m-p/1230841#M392250</guid>
      <dc:creator>kuba_michalik</dc:creator>
      <dc:date>2017-03-06T09:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: If statement in calculated dimension breaks the selection</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-in-calculated-dimension-breaks-the-selection/m-p/1230842#M392251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Jakub .. that is indeed brilliant &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Mar 2017 09:34:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-in-calculated-dimension-breaks-the-selection/m-p/1230842#M392251</guid>
      <dc:creator>amien</dc:creator>
      <dc:date>2017-03-06T09:34:46Z</dc:date>
    </item>
  </channel>
</rss>

