<?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: Set analysis not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working/m-p/1003222#M340921</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be your date is in text format. try to convert it in Date format by&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;date(date#(YourDateField,'DD-MM-YYYY'),'DD-MM-YYYY') as Date&lt;/STRONG&gt; then use your expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or use below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: line-through;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="text-decoration: line-through;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: line-through;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: line-through;"&gt;"$(=max(date#(Date,'DD-MM-YYYY')))"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;}&amp;gt;}Sales)&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Date={"$(=max(date(date#(Date,'DD-MM-YYYY'),'DD-MM-YYYY')))"}&amp;gt;}Sales) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 29 Nov 2015 15:18:46 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2015-11-29T15:18:46Z</dc:date>
    <item>
      <title>Set analysis not working</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working/m-p/1003221#M340920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I have Date field in my data model and I am using below expression to get the sales but unfortunately it's not working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Format of Date field is DD-MM-YYYY&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"$(=max(Date))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}Sales) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Nov 2015 15:14:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working/m-p/1003221#M340920</guid>
      <dc:creator />
      <dc:date>2015-11-29T15:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working/m-p/1003222#M340921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be your date is in text format. try to convert it in Date format by&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;date(date#(YourDateField,'DD-MM-YYYY'),'DD-MM-YYYY') as Date&lt;/STRONG&gt; then use your expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or use below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; text-decoration: line-through;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="text-decoration: line-through;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: line-through;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt; text-decoration: line-through;"&gt;"$(=max(date#(Date,'DD-MM-YYYY')))"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;}&amp;gt;}Sales)&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Date={"$(=max(date(date#(Date,'DD-MM-YYYY'),'DD-MM-YYYY')))"}&amp;gt;}Sales) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Nov 2015 15:18:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working/m-p/1003222#M340921</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-11-29T15:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working/m-p/1003223#M340922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you need the same format as your Date field also for the right part, DD-MM-YYYY, add a Date formatting function;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if your date format (SET DateFormat='DD-MM-YYYY'; at the beginning of the script is DD-MM-YYYY just the Date function&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;"$(=&lt;STRONG&gt;Date&lt;/STRONG&gt;(max(Date)))"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; font-size: 8pt; font-style: inherit; font-weight: inherit; color: #3d3d3d; line-height: 1.5em;"&gt;}&amp;gt;}Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit; font-size: 8pt; font-style: inherit; font-weight: inherit; color: #3d3d3d; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-style: inherit; font-size: 13.3333px; font-family: inherit; font-weight: inherit;"&gt;if your date format (SET DateFormat='DD/MM/YYYY'; at the beginning of the script isn't DD-MM-YYYY the Date function with the format DD-MM-YYYY&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #0000ff;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit; color: #800000;"&gt;"$(=&lt;STRONG&gt;Date&lt;/STRONG&gt;(max(Date)), 'DD-MM-YYYY')"&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: inherit;"&gt;}&amp;gt;}Sales)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Nov 2015 15:22:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working/m-p/1003223#M340922</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-11-29T15:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working/m-p/1003224#M340923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot ,your guess was correct. Date field was in text format. I didn't recognize. My bad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Nov 2015 15:34:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working/m-p/1003224#M340923</guid>
      <dc:creator />
      <dc:date>2015-11-29T15:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working/m-p/1003225#M340924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks maxgro for your response. It is helpful but unfortunately will not help as Date was in text format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Nov 2015 15:35:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working/m-p/1003225#M340924</guid>
      <dc:creator />
      <dc:date>2015-11-29T15:35:49Z</dc:date>
    </item>
  </channel>
</rss>

