<?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 Can anyone help me with the correct logic for this code. This seems to be showing incorrect reusult in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Can-anyone-help-me-with-the-correct-logic-for-this-code-This/m-p/2013508#M83770</link>
    <description>&lt;P&gt;Hi I am new to Qlik Sense. Can anyone please help me with correctsolution to this as this is an urgent requirement.&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;if(Year(max(FISCAL_YEAR))=Year(Today()), Year(max(FINANCIAL_YEAR))) as Curr_FY, if(Year(max(FISCAL_YEAR))=Year(Today()), Year(today()-1)) as Prev_FY Resident [data_table];&lt;/P&gt;
&lt;P&gt;Let Current_FY = '=Curr_FY'; Let Last_FY = '=Prev_FY';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to create a dynamic variable in load editor for current fiscal year and previous fiscal year. So that I use it in table chart.&lt;/P&gt;</description>
    <pubDate>Wed, 07 Dec 2022 07:11:54 GMT</pubDate>
    <dc:creator>aarav021</dc:creator>
    <dc:date>2022-12-07T07:11:54Z</dc:date>
    <item>
      <title>Can anyone help me with the correct logic for this code. This seems to be showing incorrect reusult</title>
      <link>https://community.qlik.com/t5/App-Development/Can-anyone-help-me-with-the-correct-logic-for-this-code-This/m-p/2013508#M83770</link>
      <description>&lt;P&gt;Hi I am new to Qlik Sense. Can anyone please help me with correctsolution to this as this is an urgent requirement.&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;if(Year(max(FISCAL_YEAR))=Year(Today()), Year(max(FINANCIAL_YEAR))) as Curr_FY, if(Year(max(FISCAL_YEAR))=Year(Today()), Year(today()-1)) as Prev_FY Resident [data_table];&lt;/P&gt;
&lt;P&gt;Let Current_FY = '=Curr_FY'; Let Last_FY = '=Prev_FY';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to create a dynamic variable in load editor for current fiscal year and previous fiscal year. So that I use it in table chart.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 07:11:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Can-anyone-help-me-with-the-correct-logic-for-this-code-This/m-p/2013508#M83770</guid>
      <dc:creator>aarav021</dc:creator>
      <dc:date>2022-12-07T07:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone help me with the correct logic for this code. This seems to be showing incorrect reusult</title>
      <link>https://community.qlik.com/t5/App-Development/Can-anyone-help-me-with-the-correct-logic-for-this-code-This/m-p/2013531#M83772</link>
      <description>&lt;P&gt;You will need to use the peek function to populate your variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Let Current_FY =&amp;nbsp;&lt;/SPAN&gt;PEEK('&lt;SPAN&gt;Curr_FY&lt;/SPAN&gt;',0,'TableName')&lt;/P&gt;
&lt;P&gt;Table name being the name of the Table you have created the fields in.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 07:44:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Can-anyone-help-me-with-the-correct-logic-for-this-code-This/m-p/2013531#M83772</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2022-12-07T07:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone help me with the correct logic for this code. This seems to be showing incorrect reusult</title>
      <link>https://community.qlik.com/t5/App-Development/Can-anyone-help-me-with-the-correct-logic-for-this-code-This/m-p/2013551#M83776</link>
      <description>&lt;P&gt;[DATE_table1]&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;if(Year(max(FISCAL_YEAR))=Year(Today()), Year(max(FINANCIAL_YEAR))) as Curr_FY, if(Year(max(FISCAL_YEAR))=Year(Today()), Year(today()-1)) as Prev_FY Resident [data_table];&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Let Current_FY =&amp;nbsp;&lt;/SPAN&gt;PEEK('&lt;SPAN&gt;Curr_FY&lt;/SPAN&gt;',0,'DATE_table1')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you mean this ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 08:14:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Can-anyone-help-me-with-the-correct-logic-for-this-code-This/m-p/2013551#M83776</guid>
      <dc:creator>aarav021</dc:creator>
      <dc:date>2022-12-07T08:14:31Z</dc:date>
    </item>
  </channel>
</rss>

