<?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: Variable change field in a table - Qliksense in Visualization and Usability</title>
    <link>https://community.qlik.com/t5/Visualization-and-Usability/Variable-change-field-in-a-table-Qliksense/m-p/1814305#M186471</link>
    <description>&lt;P&gt;Thanks for the QVF file, i understood the issue better with the sample file. The issue here is the condition used, when you select the first variable (Document type) you want to dynamically change the value for dimension analysis (Nazione / BP). The problem here is that when you have already made the selection and you want to update the selection the variable has to refresh and this was not happening.&amp;nbsp;&lt;/P&gt;&lt;P&gt;To rectify this, i made few changes. instead of assigning string values to the variable i used numbers&lt;/P&gt;&lt;P&gt;Var1 is the variable used for Document type and the labels and values are (Invoiced = 1, Orders=2),&amp;nbsp;&lt;/P&gt;&lt;P&gt;Var2 is the variable used for analysis dimension and the labels and values are (Agente BP =1, Mese = 2 and&amp;nbsp;if($(var1)=1,'BP','Nazione'), 3)&amp;nbsp;&lt;/P&gt;&lt;P&gt;additionally, i have created a new variable called "New_Dim" and its value is&lt;/P&gt;&lt;P&gt;pick(Match(var2,3)+1&lt;BR /&gt;,Pick(Match(var2,1,2),chr(91)&amp;amp;'Agente BP'&amp;amp;chr(93),'Mese')&lt;BR /&gt;,Pick(var1,'BP','Nazione'))&lt;/P&gt;&lt;P&gt;and then refer this variable in Dimension of the table as $(New_Dim) and this should allow you display the values dynamically.&amp;nbsp;&lt;/P&gt;&lt;P&gt;also, i have attached your QVF file for reference.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Jun 2021 19:47:54 GMT</pubDate>
    <dc:creator>Sammy_AK</dc:creator>
    <dc:date>2021-06-10T19:47:54Z</dc:date>
    <item>
      <title>Variable change field in a table - Qliksense</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Variable-change-field-in-a-table-Qliksense/m-p/1813905#M186368</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;I am trying to fix a problem I am having on QlikSense. So what I am trying to do is to change a value of a variable based on the value selected in another. And it all works but the last variable I have is inserted as a dimension in a table. And when I change the value in the first variable, in the input box it shows me the value changed but it doesn't change the value in the table. In fact it changes the value only if I select another value in the last variable and then I re-select the value changed.&lt;/P&gt;&lt;P&gt;So let's suppose I have two variables:&lt;/P&gt;&lt;P&gt;- v1 which can be equal to Budget, Stat, Comm&lt;/P&gt;&lt;P&gt;- v2 which can be equal to 'Nation', 'Month', and if(v1=Budget, 'Budget Agent', 'Dest Agent')&lt;/P&gt;&lt;P&gt;(The values put on v2 are equal to the field I want to analyze on the table)&lt;/P&gt;&lt;P&gt;So let's suppose I have selected v1=Stat and v2=Dest Agent, and the I select budget in v1. So it changes the value shows on v2 but it doesn't change the dimension in the table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to achieve what I am trying to do.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 14:46:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Variable-change-field-in-a-table-Qliksense/m-p/1813905#M186368</guid>
      <dc:creator>zenobendi</dc:creator>
      <dc:date>2021-06-09T14:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Variable change field in a table - Qliksense</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Variable-change-field-in-a-table-Qliksense/m-p/1813959#M186380</link>
      <description>&lt;P&gt;if you are using a column name as Dest Agent, you need to pass this column value as "Dest Agent" or [Dest Agent], because of this qlik is unable to read the column name. either you make changes to the variable or rename the column as "Dest_Agent" and use this as reference.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 15:42:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Variable-change-field-in-a-table-Qliksense/m-p/1813959#M186380</guid>
      <dc:creator>Sammy_AK</dc:creator>
      <dc:date>2021-06-09T15:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Variable change field in a table - Qliksense</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Variable-change-field-in-a-table-Qliksense/m-p/1814063#M186410</link>
      <description>&lt;P&gt;First of all thanks for your kind reply.&lt;/P&gt;&lt;P&gt;I tried to put as variable value directly the field name without putting it like this 'Nation', but the table doesn't recognize the dimension either if I put my variable as a dimension in this way $(v2) or directly as v2.&lt;/P&gt;&lt;P&gt;I attach the photos of what happens. As you can see when I change my first variable from 'Invoiced' to ''Orders' the second one changes it's value from 'BP' to 'Nazione' but the table dimension which is equal to $(v2) doesn't change. In fact it changes correctly to 'Nazione' only if I select for example 'Agente BP' and then I reselect 'Nazione'&lt;/P&gt;&lt;P&gt;The expression I use to make the variable change based on the value of my first variable is:&lt;/P&gt;&lt;P&gt;=if(v1='Invoiced','Nazione','BP')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Zeno&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 07:46:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Variable-change-field-in-a-table-Qliksense/m-p/1814063#M186410</guid>
      <dc:creator>zenobendi</dc:creator>
      <dc:date>2021-06-10T07:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Variable change field in a table - Qliksense</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Variable-change-field-in-a-table-Qliksense/m-p/1814111#M186421</link>
      <description>&lt;P&gt;in your variable expression, do not include =, it should be&amp;nbsp;&lt;SPAN&gt;if(v1='Invoiced','Nazione','BP') and you can parse the variable in expression as $(v2)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 09:30:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Variable-change-field-in-a-table-Qliksense/m-p/1814111#M186421</guid>
      <dc:creator>Sammy_AK</dc:creator>
      <dc:date>2021-06-10T09:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Variable change field in a table - Qliksense</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Variable-change-field-in-a-table-Qliksense/m-p/1814177#M186439</link>
      <description>&lt;P&gt;I tried your solution and it changes correctly the value showed in my variable input (for v2) but it doesn't change the value in the table (until I select another value and then reselect the value). It is like Qliksense doesn't recognize the change happened until I reselect it.&lt;/P&gt;&lt;P&gt;I attach here a simulation of my app.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope that this can help.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Zeno&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 12:38:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Variable-change-field-in-a-table-Qliksense/m-p/1814177#M186439</guid>
      <dc:creator>zenobendi</dc:creator>
      <dc:date>2021-06-10T12:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Variable change field in a table - Qliksense</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Variable-change-field-in-a-table-Qliksense/m-p/1814305#M186471</link>
      <description>&lt;P&gt;Thanks for the QVF file, i understood the issue better with the sample file. The issue here is the condition used, when you select the first variable (Document type) you want to dynamically change the value for dimension analysis (Nazione / BP). The problem here is that when you have already made the selection and you want to update the selection the variable has to refresh and this was not happening.&amp;nbsp;&lt;/P&gt;&lt;P&gt;To rectify this, i made few changes. instead of assigning string values to the variable i used numbers&lt;/P&gt;&lt;P&gt;Var1 is the variable used for Document type and the labels and values are (Invoiced = 1, Orders=2),&amp;nbsp;&lt;/P&gt;&lt;P&gt;Var2 is the variable used for analysis dimension and the labels and values are (Agente BP =1, Mese = 2 and&amp;nbsp;if($(var1)=1,'BP','Nazione'), 3)&amp;nbsp;&lt;/P&gt;&lt;P&gt;additionally, i have created a new variable called "New_Dim" and its value is&lt;/P&gt;&lt;P&gt;pick(Match(var2,3)+1&lt;BR /&gt;,Pick(Match(var2,1,2),chr(91)&amp;amp;'Agente BP'&amp;amp;chr(93),'Mese')&lt;BR /&gt;,Pick(var1,'BP','Nazione'))&lt;/P&gt;&lt;P&gt;and then refer this variable in Dimension of the table as $(New_Dim) and this should allow you display the values dynamically.&amp;nbsp;&lt;/P&gt;&lt;P&gt;also, i have attached your QVF file for reference.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 19:47:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Variable-change-field-in-a-table-Qliksense/m-p/1814305#M186471</guid>
      <dc:creator>Sammy_AK</dc:creator>
      <dc:date>2021-06-10T19:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Variable change field in a table - Qliksense</title>
      <link>https://community.qlik.com/t5/Visualization-and-Usability/Variable-change-field-in-a-table-Qliksense/m-p/1814362#M186479</link>
      <description>&lt;P&gt;Thanks! This was great help&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 06:19:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Visualization-and-Usability/Variable-change-field-in-a-table-Qliksense/m-p/1814362#M186479</guid>
      <dc:creator>zenobendi</dc:creator>
      <dc:date>2021-06-11T06:19:03Z</dc:date>
    </item>
  </channel>
</rss>

