<?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: Dimensions as variable in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dimensions-as-variable-in-set-analysis/m-p/1583678#M919643</link>
    <description>&lt;P&gt;Nothing connects the inline table with the rest of the data model. It's a data island table. You merely used the inline table to let the user select a value. That value is then used to dynamically change the set analysis expression to select the value C in the field that the user selected.&lt;/P&gt;</description>
    <pubDate>Thu, 23 May 2019 06:05:53 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2019-05-23T06:05:53Z</dc:date>
    <item>
      <title>Dimensions as variable in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Dimensions-as-variable-in-set-analysis/m-p/1047915#M919638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi everyone,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I have different time period flags in my data model as R3M, R6M, R12M with 'C'(Current) and 'P'(Previous) flag populated for each time filter. Currently, I am calculating only for R3M flags, so I wrote set analysis like below.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;"Sum({&amp;lt;R3M={'C'}&amp;gt;}Sales)"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Now we are planning to give time period filter on top of dashboard like R3M, R6M, R12M. By selecting on each time period list box the dashboard should be filtered out. So instead of writing multiple expressions in the chart, we need to make R3M, R6M, R12M dimensions values into the variables and by changing the filter selection the value in the set analysis should need to change.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;So Please guide me how to assign different fields(R3M,R6M,R12M) into one list box and driving the values into expressions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;=Sum({&amp;lt;$(vVariable)={'C'}&amp;gt;}Sales)??&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks in Advance,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Polisetti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimensions-as-variable-in-set-analysis/m-p/1047915#M919638</guid>
      <dc:creator>polisetti</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dimensions as variable in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Dimensions-as-variable-in-set-analysis/m-p/1047916#M919639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In general you could replace it with a variable. Here an example with a selection of a field [Category] which will be evaluated per $-sign expansion:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt; $(='[' &amp;amp; getfieldselections([Category]) &amp;amp; ']') ={'C'}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2016 14:29:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimensions-as-variable-in-set-analysis/m-p/1047916#M919639</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-04-29T14:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dimensions as variable in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Dimensions-as-variable-in-set-analysis/m-p/1047917#M919640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;Create a small inline table with a field for the listbox:&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: 13.3333px;"&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: 13.3333px;"&gt;NewTable:&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: 13.3333px;"&gt;LOAD * INLINE [&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: 13.3333px;"&gt;ListBoxField&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: 13.3333px;"&gt;R3M&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: 13.3333px;"&gt;R6M&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: 13.3333px;"&gt;R12M&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: 13.3333px;"&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: 13.3333px;"&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: 13.3333px;"&gt;Use that listbox to select one value. Enabling the Always One Selected Value option of the listbox might be a good idea.&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: 13.3333px;"&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: 13.3333px;"&gt;Then you can use this expression: sum({&amp;lt;$(=Only(ListBoxField))={'C'}&amp;gt;}Sales). If you want you can also put &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;$(=Only(ListBoxField)) into a variable: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;=Only(ListBoxField). And use the variable in the expression: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;sum({&amp;lt;$(vMyVar)={'C'}&amp;gt;}Sales)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&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: 13.3333px;"&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: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2016 14:32:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimensions-as-variable-in-set-analysis/m-p/1047917#M919640</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-04-29T14:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dimensions as variable in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Dimensions-as-variable-in-set-analysis/m-p/1047918#M919641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will let you know if this works for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2016 14:46:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimensions-as-variable-in-set-analysis/m-p/1047918#M919641</guid>
      <dc:creator>polisetti</dc:creator>
      <dc:date>2016-04-29T14:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Dimensions as variable in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Dimensions-as-variable-in-set-analysis/m-p/1583542#M919642</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/18624"&gt;@Gysbert_Wassenaar&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/36590"&gt;@polisetti&lt;/a&gt;&amp;nbsp;what connects the new INLINE table you created and the previous data table you already had? For example, when i select '&lt;SPAN&gt;R3M' in the INLINE table, how does it know that i am selecting the 'R3M' in the original table?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i think i'm missing something. please guide. thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 18:37:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimensions-as-variable-in-set-analysis/m-p/1583542#M919642</guid>
      <dc:creator>triekong</dc:creator>
      <dc:date>2019-05-22T18:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dimensions as variable in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Dimensions-as-variable-in-set-analysis/m-p/1583678#M919643</link>
      <description>&lt;P&gt;Nothing connects the inline table with the rest of the data model. It's a data island table. You merely used the inline table to let the user select a value. That value is then used to dynamically change the set analysis expression to select the value C in the field that the user selected.&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2019 06:05:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimensions-as-variable-in-set-analysis/m-p/1583678#M919643</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2019-05-23T06:05:53Z</dc:date>
    </item>
  </channel>
</rss>

