<?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 Value of a variable in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Value-of-a-variable/m-p/1779198#M60567</link>
    <description>&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;i have a switch-button to choose between day/week/month.&lt;/P&gt;&lt;P&gt;Now i want to get the corresponding field to use it in a bar chart for an aggregation.&lt;/P&gt;&lt;P&gt;How do i access this field?&lt;/P&gt;&lt;P&gt;The variables are defined in script as follows (it works fine)&lt;/P&gt;&lt;P&gt;LET v_sc_swt_select_intvk = 'day';&lt;BR /&gt;LET v_sc_swt_dim_intvk = 'if(''§(v_sc_swt_select_intvk)''=''month'',d_month_vk,if(''§(v_sc_swt_select_intvk)'' = ''week'',d_week_vk,if(''§(v_sc_swt_select_intvk)''=''day'',d_day_vk)))';&lt;BR /&gt;LET v_sc_swt_dim_intvk = Replace(v_sc_swt_dim_intvk,'§','$');&lt;/P&gt;&lt;P&gt;within a barplot the height of bars shall be calculated with:&lt;/P&gt;&lt;P&gt;Sum(TOTAL &amp;lt;v_sc_swt_dim_intvk&amp;gt; qty_sold)*100&lt;/P&gt;&lt;P&gt;the variable v_sc_swt_dim_intvk should actually be e.g. d_day_vk.&lt;/P&gt;&lt;P&gt;What magic has to be done to display v_sc_swt_dim_intvk as the above defined fields&lt;/P&gt;&lt;P&gt;$(v_sc_swt_dim_intvk) does not work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your help is highly appreciated&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 17:32:29 GMT</pubDate>
    <dc:creator>DSDD</dc:creator>
    <dc:date>2024-11-16T17:32:29Z</dc:date>
    <item>
      <title>Value of a variable</title>
      <link>https://community.qlik.com/t5/App-Development/Value-of-a-variable/m-p/1779198#M60567</link>
      <description>&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;i have a switch-button to choose between day/week/month.&lt;/P&gt;&lt;P&gt;Now i want to get the corresponding field to use it in a bar chart for an aggregation.&lt;/P&gt;&lt;P&gt;How do i access this field?&lt;/P&gt;&lt;P&gt;The variables are defined in script as follows (it works fine)&lt;/P&gt;&lt;P&gt;LET v_sc_swt_select_intvk = 'day';&lt;BR /&gt;LET v_sc_swt_dim_intvk = 'if(''§(v_sc_swt_select_intvk)''=''month'',d_month_vk,if(''§(v_sc_swt_select_intvk)'' = ''week'',d_week_vk,if(''§(v_sc_swt_select_intvk)''=''day'',d_day_vk)))';&lt;BR /&gt;LET v_sc_swt_dim_intvk = Replace(v_sc_swt_dim_intvk,'§','$');&lt;/P&gt;&lt;P&gt;within a barplot the height of bars shall be calculated with:&lt;/P&gt;&lt;P&gt;Sum(TOTAL &amp;lt;v_sc_swt_dim_intvk&amp;gt; qty_sold)*100&lt;/P&gt;&lt;P&gt;the variable v_sc_swt_dim_intvk should actually be e.g. d_day_vk.&lt;/P&gt;&lt;P&gt;What magic has to be done to display v_sc_swt_dim_intvk as the above defined fields&lt;/P&gt;&lt;P&gt;$(v_sc_swt_dim_intvk) does not work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your help is highly appreciated&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:32:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Value-of-a-variable/m-p/1779198#M60567</guid>
      <dc:creator>DSDD</dc:creator>
      <dc:date>2024-11-16T17:32:29Z</dc:date>
    </item>
  </channel>
</rss>

