<?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 Dynamically name a field in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamically-name-a-field-in-set-analysis/m-p/134563#M759736</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to do something that is not working, although I'm not too sure it is even possible in the first place.&lt;/P&gt;&lt;P&gt;What I'm attempting to do is dynamically create a field in a set analysis, so that it will be a different field depending on the selected scenario. Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's assume I have a field named &lt;STRONG&gt;OrderDate &lt;/STRONG&gt;with the values &lt;STRONG&gt;Request &lt;/STRONG&gt;and &lt;STRONG&gt;Confirmed.&lt;/STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;Then, I have another two fields named &lt;STRONG&gt;OrderDateRequest&lt;/STRONG&gt; and &lt;STRONG&gt;OrderDateConfirmed.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In the set analysis I would like to do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(&amp;lt;{&lt;STRONG&gt;OrderDate$(OrderDate)&lt;/STRONG&gt;={'20/02/2018'}&amp;gt;}#Volume)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible, to dynamically name a field like this? So that when I select &lt;STRONG&gt;Request &lt;/STRONG&gt;or &lt;STRONG&gt;Confirmed &lt;/STRONG&gt;on &lt;STRONG&gt;OrderDate &lt;/STRONG&gt;it be selecting a values from different fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;André Braga&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>afbraga1</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Dynamically name a field in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-name-a-field-in-set-analysis/m-p/134563#M759736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to do something that is not working, although I'm not too sure it is even possible in the first place.&lt;/P&gt;&lt;P&gt;What I'm attempting to do is dynamically create a field in a set analysis, so that it will be a different field depending on the selected scenario. Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's assume I have a field named &lt;STRONG&gt;OrderDate &lt;/STRONG&gt;with the values &lt;STRONG&gt;Request &lt;/STRONG&gt;and &lt;STRONG&gt;Confirmed.&lt;/STRONG&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;Then, I have another two fields named &lt;STRONG&gt;OrderDateRequest&lt;/STRONG&gt; and &lt;STRONG&gt;OrderDateConfirmed.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In the set analysis I would like to do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(&amp;lt;{&lt;STRONG&gt;OrderDate$(OrderDate)&lt;/STRONG&gt;={'20/02/2018'}&amp;gt;}#Volume)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible, to dynamically name a field like this? So that when I select &lt;STRONG&gt;Request &lt;/STRONG&gt;or &lt;STRONG&gt;Confirmed &lt;/STRONG&gt;on &lt;STRONG&gt;OrderDate &lt;/STRONG&gt;it be selecting a values from different fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;André Braga&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/Dynamically-name-a-field-in-set-analysis/m-p/134563#M759736</guid>
      <dc:creator>afbraga1</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically name a field in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-name-a-field-in-set-analysis/m-p/134564#M759737</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;you could add a variable like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vField = if(GetFieldSelections(OrderDate)='Request','OrderDateRequest','OrderDateConfirmed')&lt;/P&gt;&lt;P&gt;then sum(&amp;nbsp;&amp;nbsp; {&amp;lt; $(v) = {xxxxxxxxx} volume)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2018 09:49:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-name-a-field-in-set-analysis/m-p/134564#M759737</guid>
      <dc:creator>ogautier62</dc:creator>
      <dc:date>2018-08-30T09:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically name a field in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamically-name-a-field-in-set-analysis/m-p/134565#M759738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Olivier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did manage to solve it by creating 2 variables for this - &lt;STRONG&gt;$(OrderDate)&lt;/STRONG&gt; which has as value the &lt;STRONG&gt;OrderDate&lt;/STRONG&gt; field, and the second variable &lt;STRONG&gt;$(OrderBacklogDate)&lt;/STRONG&gt; with the value &lt;STRONG&gt;='OrderDate'&amp;amp;$(OrderDate).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;By using &lt;STRONG&gt;$(OrderBacklogDate)={'20/02/2018'}, &lt;/STRONG&gt;I have now the desirable outcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your example didn't fully reflect my intent, partly because the value selections of the OrderDate field, do not reflect the name of the fields I wanted to portray. Nonetheless it really helped me expand my thought horizon and create new ideas on how to tackle the issue. Thank you!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;André Braga&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2018 14:48:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamically-name-a-field-in-set-analysis/m-p/134565#M759738</guid>
      <dc:creator>afbraga1</dc:creator>
      <dc:date>2018-08-30T14:48:32Z</dc:date>
    </item>
  </channel>
</rss>

