<?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: Dynamic field in a checkbox in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-field-in-a-checkbox/m-p/810058#M285949</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got it. Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Mar 2015 15:39:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-03-16T15:39:31Z</dc:date>
    <item>
      <title>Dynamic field in a checkbox</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-field-in-a-checkbox/m-p/810051#M285942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'd like to change a field in a &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Checkbox&lt;/SPAN&gt; dynamicly. Actually, my task is to switch between Field1 (Brands) and Field2 (Advertiser). So, I base my Dynamic Checkbox on the following expression: =if ($(vChoice)=1, Brands, if ($(vChoice)=2, Advertiser)). It allows me to control the content of the &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Dynamic Checkbox&lt;/SPAN&gt; by the value =1 or 2&lt;SPAN style="font-size: 13.3333330154419px;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it doen't wok properly. For instance:&lt;/P&gt;&lt;P&gt;Step 1: I set &lt;SPAN style="font-size: 13.3333330154419px;"&gt;vChoice=1 and show &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Brands in &lt;SPAN style="font-size: 13.3333330154419px;"&gt;the &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Dynamic Checkbox&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Step 2: I select a brand, e.g. AUDI&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Result: I see that not only brand AUDI but also some advertisers were selected. Why? Advertisers should not get selected if I select brands only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please say how I can set it so that brands and advertisers were selected seperately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, see the file attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Larisa Filonova&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 12:18:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-field-in-a-checkbox/m-p/810051#M285942</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-16T12:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic field in a checkbox</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-field-in-a-checkbox/m-p/810052#M285943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your two tables are linked to each other on the field name Media. If you don't want selection of Brand to not impact Advertisers and vice versa you will have to break that link. You can try something like this may be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;brand_table:&lt;/P&gt;&lt;P&gt;LOAD [Media type] as [Media],&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Brand] as [Brands], &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Cost RUB] as [Budget]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;brand_data.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Лист1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;advertiser_table:&lt;/P&gt;&lt;P&gt;LOAD [Media type] as &lt;STRONG&gt;[Media1],&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Advertiser, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Cost RUB] as [Budget1]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;advertiser_data.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Лист1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in one of the tables call media type as Media1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't tested it, but I am almost certain this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 12:33:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-field-in-a-checkbox/m-p/810052#M285943</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-03-16T12:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic field in a checkbox</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-field-in-a-checkbox/m-p/810053#M285944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The point is that I want Media to be a common field, that's why I don't want to rename it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's imagine that two tables (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;brand_table and advertiser&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;_table)&lt;/SPAN&gt;&lt;/SPAN&gt; must have a common field &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Media. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Then:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see that it can work correctly in case of static checkboxes even if there is a common field.&lt;/P&gt;&lt;P&gt;Scenario 1:&lt;/P&gt;&lt;P&gt;Step 1: I create two static checkboxes (the first one is based on Brands field, the seconds one is based on Advertiser field)&lt;/P&gt;&lt;P&gt;Step 2: I select a brand and make sure that no advertiser has been simultaneously selected. That's right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Scenario 2:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Step 1: I create a dynamic checkbox by the means of the following expression &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=if ($(vChoice)=1, Brands, if ($(vChoice)=2, Advertiser)).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Step 2: I select a brand in the &lt;SPAN style="font-size: 13.3333330154419px;"&gt;dynamic&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt; checkbox &lt;/SPAN&gt;and see that some advertisers have been simultaneously selected. That's wrong!&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Maybe, I should set &lt;SPAN style="font-size: 13.3333330154419px;"&gt;a dynamic checkbox not by the means of if statement but somehow differently?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;See the file attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 13:07:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-field-in-a-checkbox/m-p/810053#M285944</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-16T13:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic field in a checkbox</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-field-in-a-checkbox/m-p/810054#M285945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get your point now. Let me see if I can figure that out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 13:17:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-field-in-a-checkbox/m-p/810054#M285945</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-03-16T13:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic field in a checkbox</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-field-in-a-checkbox/m-p/810055#M285946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this way,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 395px;"&gt;&lt;TBODY&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt; width: 74pt;" width="99"&gt;dimensionNo&lt;/TD&gt;&lt;TD style="width: 127pt;" width="169"&gt;dimensionLabel&lt;/TD&gt;&lt;TD style="width: 95pt;" width="127"&gt;dimension&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" height="20" style="height: 15.0pt;"&gt;1&lt;/TD&gt;&lt;TD&gt;Customer Name&lt;/TD&gt;&lt;TD&gt;[Customer Name]&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" height="20" style="height: 15.0pt;"&gt;2&lt;/TD&gt;&lt;TD&gt;Province&lt;/TD&gt;&lt;TD&gt;Province&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" height="20" style="height: 15.0pt;"&gt;3&lt;/TD&gt;&lt;TD&gt;Region&lt;/TD&gt;&lt;TD&gt;Region&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" height="20" style="height: 15.0pt;"&gt;4&lt;/TD&gt;&lt;TD&gt;Customer Segment&lt;/TD&gt;&lt;TD&gt;[Customer Segment]&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD align="right" height="20" style="height: 15.0pt;"&gt;5&lt;/TD&gt;&lt;TD&gt;Product Category&lt;/TD&gt;&lt;TD&gt;[Product Category]&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;2. and use the folowing expression from ur UI,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Dimension info- &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Used dimensions&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;=$(=only({$ &amp;lt;_dimensionNo={1}&amp;gt;} _dimension))&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Enable Conditions&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;=SubStringCount(Concat(_dimension, '|'), '$(=only({$ &amp;lt;_dimensionNo={1}&amp;gt;} _dimension))')&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P&gt;Look might be complex,but it's very simple way to do,&lt;/P&gt;&lt;P&gt;create list box with _&lt;SPAN style="font-size: 13.3333330154419px;"&gt;dimensionLabel,all ur fields are available.. slecte ur field dynamically from here,it will add auto matically to ur table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 14:09:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-field-in-a-checkbox/m-p/810055#M285946</guid>
      <dc:creator>buzzy996</dc:creator>
      <dc:date>2015-03-16T14:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic field in a checkbox</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-field-in-a-checkbox/m-p/810056#M285947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TRY THIS,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THIS WILL WORK WITH VERSION 11 ON WORDS,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLS ADD THESE CONDIONS ON UR DIMENSION TAB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.33px;"&gt;Used dimensions&lt;/P&gt;&lt;P style="font-size: 13.33px;"&gt;=$(=only({$ &amp;lt;dimensionNo={1}&amp;gt;} dimension))&lt;/P&gt;&lt;P style="padding: 0px; font-size: 13.33px; min-height: 8pt;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.33px;"&gt;Enable Conditions&lt;/P&gt;&lt;P style="font-size: 13.33px;"&gt;=SubStringCount(Concat(dimension, '|'), '$(=only({$ &amp;lt;dimensionNo={1}&amp;gt;} dimension))')&lt;/P&gt;&lt;P style="font-size: 13.33px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.33px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.33px;"&gt;Creat list box with dimesnionlable and presentation tab selection style over ride as LED check box.&lt;/P&gt;&lt;P style="font-size: 13.33px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.33px;"&gt;Try to slect any brand from list box those changes we can see from ur chart object.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 14:20:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-field-in-a-checkbox/m-p/810056#M285947</guid>
      <dc:creator>buzzy996</dc:creator>
      <dc:date>2015-03-16T14:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic field in a checkbox</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-field-in-a-checkbox/m-p/810057#M285948</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;No need to change your data model. Just do the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create variable vDynamic&lt;/LI&gt;&lt;LI&gt;Change first button first action to change vDynamic to Brands&lt;/LI&gt;&lt;LI&gt;Change second button first action to change vDynamic to Advertiser&lt;/LI&gt;&lt;LI&gt;Change the dynamic list box expression to $(vDynamic)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 14:33:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-field-in-a-checkbox/m-p/810057#M285948</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-03-16T14:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic field in a checkbox</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-field-in-a-checkbox/m-p/810058#M285949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got it. Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 15:39:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-field-in-a-checkbox/m-p/810058#M285949</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-16T15:39:31Z</dc:date>
    </item>
  </channel>
</rss>

