<?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: Expression ---&amp;gt; Variable in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Expression-gt-Variable/m-p/1794987#M62301</link>
    <description>&lt;P&gt;This should work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Might be there is problem with the format which you are providing in "total DateField".&lt;/P&gt;&lt;P&gt;try removing Date# you might get result.&lt;/P&gt;&lt;P&gt;If not share a screenshot of the fields you are using.&lt;/P&gt;</description>
    <pubDate>Sat, 27 Mar 2021 04:07:18 GMT</pubDate>
    <dc:creator>askarkhan</dc:creator>
    <dc:date>2021-03-27T04:07:18Z</dc:date>
    <item>
      <title>Expression ---&gt; Variable</title>
      <link>https://community.qlik.com/t5/App-Development/Expression-gt-Variable/m-p/1794976#M62300</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to convert my expression to a variable. I plan to use this variable in NPrinting dynamic report names.&lt;/P&gt;&lt;P&gt;The below script gives me what i want, the only problem is that DateField has to be in&amp;nbsp; 'YYYYMM' format.&lt;/P&gt;&lt;P&gt;LET vNprinting = '=max({&amp;lt;FIELD1={'XXXXXXX'}, FIELD2={'xxxxxxxx'}&amp;gt;}total DateField)'&lt;/P&gt;&lt;P&gt;I tried this way but it didnt work:&lt;/P&gt;&lt;P&gt;LET vNPrinting =&amp;nbsp; '=date(date#(max({&amp;lt;FIELD1={'XXXXXXX'}, FIELD2={'xxxxxxxx'}&amp;gt;}total DateField),'YYYY-MM-DD'),'YYYYMM')'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 22:06:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expression-gt-Variable/m-p/1794976#M62300</guid>
      <dc:creator>Uri</dc:creator>
      <dc:date>2021-12-21T22:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Expression ---&gt; Variable</title>
      <link>https://community.qlik.com/t5/App-Development/Expression-gt-Variable/m-p/1794987#M62301</link>
      <description>&lt;P&gt;This should work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Might be there is problem with the format which you are providing in "total DateField".&lt;/P&gt;&lt;P&gt;try removing Date# you might get result.&lt;/P&gt;&lt;P&gt;If not share a screenshot of the fields you are using.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Mar 2021 04:07:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expression-gt-Variable/m-p/1794987#M62301</guid>
      <dc:creator>askarkhan</dc:creator>
      <dc:date>2021-03-27T04:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Expression ---&gt; Variable</title>
      <link>https://community.qlik.com/t5/App-Development/Expression-gt-Variable/m-p/1795076#M62317</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/67310"&gt;@askarkhan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I guess that the brackets causing the problem...&lt;/P&gt;&lt;P&gt;I cant use my expression in a variable without "" brackets....&lt;/P&gt;&lt;P&gt;This expression works in my table:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=date(date#(max({&amp;lt;FIELD1={'XXXXXXX'}, FIELD2={'xxxxxxxx'}&amp;gt;}total DateField),'YYYY-MM-DD'),'YYYYMM')'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But I cant use it in a variable, so when I change the type of the brackets, it doesnt work:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LET vNPrinting =&amp;nbsp; '=date(date#(max({&amp;lt;FIELD1={&lt;FONT color="#FF0000"&gt;"&lt;/FONT&gt;XXXXXXX&lt;FONT color="#FF0000"&gt;"&lt;/FONT&gt;}, FIELD2={&lt;FONT color="#FF0000"&gt;"&lt;/FONT&gt;xxxxxxxx&lt;FONT color="#FF0000"&gt;"&lt;/FONT&gt;}&amp;gt;}total DateField),&lt;FONT color="#FF0000"&gt;"&lt;/FONT&gt;YYYY-MM-DD&lt;FONT color="#FF0000"&gt;"&lt;/FONT&gt;),&lt;FONT color="#FF0000"&gt;"&lt;/FONT&gt;YYYYMM&lt;FONT color="#FF0000"&gt;"&lt;/FONT&gt;)'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Mar 2021 22:14:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expression-gt-Variable/m-p/1795076#M62317</guid>
      <dc:creator>Uri</dc:creator>
      <dc:date>2021-03-27T22:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Expression ---&gt; Variable</title>
      <link>https://community.qlik.com/t5/App-Development/Expression-gt-Variable/m-p/1795217#M62327</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;solved this by using an escape sequence:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Escape-sequences/ba-p/1469770" target="_blank"&gt;Escape sequences - Qlik Community - 1469770&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 08:48:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Expression-gt-Variable/m-p/1795217#M62327</guid>
      <dc:creator>Uri</dc:creator>
      <dc:date>2021-03-29T08:48:25Z</dc:date>
    </item>
  </channel>
</rss>

