<?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: Need urgent help in previous week set expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-urgent-help-in-previous-week-set-expression/m-p/85532#M753452</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praveen. I think you should to change the date format&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;num((((sum({$&amp;lt;[received_date]={"&amp;gt;=$(=Date(WeekStart(Max([received_date]),-1, 0),'M/D/YYYY'))&amp;lt;=$(=Date(WeekEnd(Max([received_date]),-1, 0),'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;M/D&lt;/STRONG&gt;&lt;/SPAN&gt;/YYYY'))"}&amp;gt;}[shop_1])+sum({$&amp;lt;[received_date]={"&amp;gt;=$(=Date(WeekStart(Max([received_date]),-1, 0),'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;M/D&lt;/STRONG&gt;&lt;/SPAN&gt;/YYYY'))&amp;lt;=$(=Date(WeekEnd(Max([received_date]),-1, 0),'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;M/D&lt;/STRONG&gt;&lt;/SPAN&gt;/YYYY'))"}&amp;gt;}[shop_2]))/sum({$&amp;lt;[received_date]={"&amp;gt;=$(=Date(WeekStart(Max([received_date]),-1, 0),'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;M/D&lt;/STRONG&gt;&lt;/SPAN&gt;/YYYY'))&amp;lt;=$(=Date(WeekEnd(Max([received_date]),-1, 0),'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;M/D&lt;/STRONG&gt;&lt;/SPAN&gt;/YYYY'))"}&amp;gt;}[Total Build])))*100,'#.##')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;IMG __jive_id="215517" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/215517_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Oct 2018 18:26:29 GMT</pubDate>
    <dc:creator>andrey_krylov</dc:creator>
    <dc:date>2018-10-09T18:26:29Z</dc:date>
    <item>
      <title>Need urgent help in previous week set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-urgent-help-in-previous-week-set-expression/m-p/85531#M753451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need help on previous week calculation. I am trying to calculate a percentage value for previous week using below expression.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;num((((sum({$&amp;lt;[received_date]={"&amp;gt;=$(=Date(WeekStart(Max([received_date]),-1, 0),'YYYY-MM-DD'))&amp;lt;=$(=Date(WeekEnd(Max([received_date]),-1, 0),'YYYY-MM-DD'))"}&amp;gt;}[shop_1])+sum({$&amp;lt;[received_date]={"&amp;gt;=$(=Date(WeekStart(Max([received_date]),-1, 0),'YYYY-MM-DD'))&amp;lt;=$(=Date(WeekEnd(Max([received_date]),-1, 0),'YYYY-MM-DD'))"}&amp;gt;}[shop_2]))/sum({$&amp;lt;[received_date]={"&amp;gt;=$(=Date(WeekStart(Max([received_date]),-1, 0),'YYYY-MM-DD'))&amp;lt;=$(=Date(WeekEnd(Max([received_date]),-1, 0),'YYYY-MM-DD'))"}&amp;gt;}[Total Build])))*100,'#.##')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But i am not getting any answer when applied this expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In simpler terms without the set analysis, it is &lt;STRONG&gt;(sum(shop_1)+sum(shop_2))/sum(total_build)&lt;/STRONG&gt; for previous week.&lt;/P&gt;&lt;P&gt;Below is my data for previous week and i have highlighted in a circle, the answer i am looking for.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="215422" alt="dATA.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/215422_dATA.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Kindly help me in resolving the above issue as i am very new to Qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Praveen Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-urgent-help-in-previous-week-set-expression/m-p/85531#M753451</guid>
      <dc:creator>praveensp</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need urgent help in previous week set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-urgent-help-in-previous-week-set-expression/m-p/85532#M753452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praveen. I think you should to change the date format&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;num((((sum({$&amp;lt;[received_date]={"&amp;gt;=$(=Date(WeekStart(Max([received_date]),-1, 0),'M/D/YYYY'))&amp;lt;=$(=Date(WeekEnd(Max([received_date]),-1, 0),'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;M/D&lt;/STRONG&gt;&lt;/SPAN&gt;/YYYY'))"}&amp;gt;}[shop_1])+sum({$&amp;lt;[received_date]={"&amp;gt;=$(=Date(WeekStart(Max([received_date]),-1, 0),'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;M/D&lt;/STRONG&gt;&lt;/SPAN&gt;/YYYY'))&amp;lt;=$(=Date(WeekEnd(Max([received_date]),-1, 0),'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;M/D&lt;/STRONG&gt;&lt;/SPAN&gt;/YYYY'))"}&amp;gt;}[shop_2]))/sum({$&amp;lt;[received_date]={"&amp;gt;=$(=Date(WeekStart(Max([received_date]),-1, 0),'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;M/D&lt;/STRONG&gt;&lt;/SPAN&gt;/YYYY'))&amp;lt;=$(=Date(WeekEnd(Max([received_date]),-1, 0),'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;M/D&lt;/STRONG&gt;&lt;/SPAN&gt;/YYYY'))"}&amp;gt;}[Total Build])))*100,'#.##')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;IMG __jive_id="215517" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/215517_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2018 18:26:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-urgent-help-in-previous-week-set-expression/m-p/85532#M753452</guid>
      <dc:creator>andrey_krylov</dc:creator>
      <dc:date>2018-10-09T18:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Need urgent help in previous week set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-urgent-help-in-previous-week-set-expression/m-p/85533#M753453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Andrey.&lt;/P&gt;&lt;P&gt;But the date format is changed when put them in excel.&lt;/P&gt;&lt;P&gt;the date format in qlikview is like - 2018-10-08 00:00:00.000000&lt;/P&gt;&lt;P&gt;Is this causing the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2018 09:13:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-urgent-help-in-previous-week-set-expression/m-p/85533#M753453</guid>
      <dc:creator>praveensp</dc:creator>
      <dc:date>2018-10-11T09:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need urgent help in previous week set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Need-urgent-help-in-previous-week-set-expression/m-p/85534#M753454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;It seems so.&lt;/SPAN&gt; Try this date format in expression &lt;STRONG&gt;'DD-MM-YYYY hh.mm.ss.ffffff'&lt;/STRONG&gt;&amp;nbsp; or load &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Date(Floor(&lt;/SPAN&gt;[received_date]), &lt;SPAN style="font-size: 13.3333330154419px;"&gt;'DD-MM-YYYY')&lt;/SPAN&gt; as &lt;STRONG style="font-size: 13.3333330154419px;"&gt;[received_date]&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2018 19:33:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-urgent-help-in-previous-week-set-expression/m-p/85534#M753454</guid>
      <dc:creator>andrey_krylov</dc:creator>
      <dc:date>2018-10-11T19:33:57Z</dc:date>
    </item>
  </channel>
</rss>

