<?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 keep string in dollar sign expansion expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/keep-string-in-dollar-sign-expansion-expression/m-p/1812264#M1212713</link>
    <description>&lt;P&gt;Hi, I'm working a expression to calculate the spend amount of last month, the last month is "2021-05".&lt;/P&gt;&lt;P&gt;And thus the expression i used is: sum({1&amp;lt;[Load Month] = {$(=maxstring([Load Month]))}&amp;gt;} [Total Cost Gross]).&lt;/P&gt;&lt;P&gt;I cannot get any result, it seems the return of&amp;nbsp;$(=max([Load Month])) is 2016, the string "2021-05" is got calculated.&lt;/P&gt;&lt;P&gt;I'm thinking to change the data structure for the Load Month in script. I believe there's alternative way to fix it by adding some letter in the expression to keep the string not be calculated, anyone can help? thanks&lt;/P&gt;&lt;P&gt;Fisher&lt;/P&gt;</description>
    <pubDate>Wed, 02 Jun 2021 03:15:07 GMT</pubDate>
    <dc:creator>FisherShi</dc:creator>
    <dc:date>2021-06-02T03:15:07Z</dc:date>
    <item>
      <title>keep string in dollar sign expansion expression</title>
      <link>https://community.qlik.com/t5/QlikView/keep-string-in-dollar-sign-expansion-expression/m-p/1812264#M1212713</link>
      <description>&lt;P&gt;Hi, I'm working a expression to calculate the spend amount of last month, the last month is "2021-05".&lt;/P&gt;&lt;P&gt;And thus the expression i used is: sum({1&amp;lt;[Load Month] = {$(=maxstring([Load Month]))}&amp;gt;} [Total Cost Gross]).&lt;/P&gt;&lt;P&gt;I cannot get any result, it seems the return of&amp;nbsp;$(=max([Load Month])) is 2016, the string "2021-05" is got calculated.&lt;/P&gt;&lt;P&gt;I'm thinking to change the data structure for the Load Month in script. I believe there's alternative way to fix it by adding some letter in the expression to keep the string not be calculated, anyone can help? thanks&lt;/P&gt;&lt;P&gt;Fisher&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 03:15:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/keep-string-in-dollar-sign-expansion-expression/m-p/1812264#M1212713</guid>
      <dc:creator>FisherShi</dc:creator>
      <dc:date>2021-06-02T03:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: keep string in dollar sign expansion expression</title>
      <link>https://community.qlik.com/t5/QlikView/keep-string-in-dollar-sign-expansion-expression/m-p/1812265#M1212714</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/141763"&gt;@FisherShi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If load month is "2021-05" as string, you can make it as "Date" like below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=MakeDate(Left('2021-05', 4), Right('2021-05', 2)) gives 2021-05-01&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In Load script,&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Load *,&amp;nbsp;MakeDate(Left(LoadMonth, 4), Right(LoadMonth, 2)) as&amp;nbsp;LoadMonth from yoursource;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then in front end,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sum({1&amp;lt;[Load Month] = {'$(=Date(max([Load Month])))'}&amp;gt;} [Total Cost Gross])&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 04:14:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/keep-string-in-dollar-sign-expansion-expression/m-p/1812265#M1212714</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2021-06-02T04:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: keep string in dollar sign expansion expression</title>
      <link>https://community.qlik.com/t5/QlikView/keep-string-in-dollar-sign-expansion-expression/m-p/1812273#M1212715</link>
      <description>&lt;P&gt;it works, thank you Mayil.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Fisher&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 05:06:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/keep-string-in-dollar-sign-expansion-expression/m-p/1812273#M1212715</guid>
      <dc:creator>FisherShi</dc:creator>
      <dc:date>2021-06-02T05:06:25Z</dc:date>
    </item>
  </channel>
</rss>

