<?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 Sum Value Set when Data not select in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-Value-Set-when-Data-not-select/m-p/1962151#M1220167</link>
    <description>&lt;P&gt;I want to sum Amount but data in set whit condition&lt;/P&gt;
&lt;P&gt;condition is :&lt;/P&gt;
&lt;P&gt;1. if Assignment_BSAD have (*) Clearing date = Text_BASD&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp;Clearing date Between MasterDate or MasterDate-7&lt;/P&gt;
&lt;P&gt;3. Document Type_BSAD = 'R1'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;[Clearing date_BSAD]={"(=MasterDate1-6)$=&amp;lt; (If(right([Assignment_BSAD],1) = '*', Date(Date#(Right([Text_BSAD],8),'D/M/YY'),'DD/MM/YYYY') ,[Clearing date_BSAD])&amp;lt;=$(=MasterDate1)"},[Document Type_BSAD] = {'R1'}&amp;gt;} [Amount in LC_BSAD])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks for the help&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Groy&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ikoonkoy_0-1659079392001.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/85443i134EC0417B906CA3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ikoonkoy_0-1659079392001.png" alt="Ikoonkoy_0-1659079392001.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jul 2022 07:32:50 GMT</pubDate>
    <dc:creator>Ikoonkoy</dc:creator>
    <dc:date>2022-07-29T07:32:50Z</dc:date>
    <item>
      <title>Sum Value Set when Data not select</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Value-Set-when-Data-not-select/m-p/1962151#M1220167</link>
      <description>&lt;P&gt;I want to sum Amount but data in set whit condition&lt;/P&gt;
&lt;P&gt;condition is :&lt;/P&gt;
&lt;P&gt;1. if Assignment_BSAD have (*) Clearing date = Text_BASD&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp;Clearing date Between MasterDate or MasterDate-7&lt;/P&gt;
&lt;P&gt;3. Document Type_BSAD = 'R1'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;[Clearing date_BSAD]={"(=MasterDate1-6)$=&amp;lt; (If(right([Assignment_BSAD],1) = '*', Date(Date#(Right([Text_BSAD],8),'D/M/YY'),'DD/MM/YYYY') ,[Clearing date_BSAD])&amp;lt;=$(=MasterDate1)"},[Document Type_BSAD] = {'R1'}&amp;gt;} [Amount in LC_BSAD])&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks for the help&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Groy&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ikoonkoy_0-1659079392001.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/85443i134EC0417B906CA3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ikoonkoy_0-1659079392001.png" alt="Ikoonkoy_0-1659079392001.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 07:32:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Value-Set-when-Data-not-select/m-p/1962151#M1220167</guid>
      <dc:creator>Ikoonkoy</dc:creator>
      <dc:date>2022-07-29T07:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Value Set when Data not select</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-Value-Set-when-Data-not-select/m-p/1962535#M1220195</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/191809"&gt;@Ikoonkoy&lt;/a&gt;&amp;nbsp; I would suggest you to create a new_date in the load script Editor first, something like below:&lt;/P&gt;
&lt;P&gt;if(right(&lt;SPAN&gt;[Assignment_BSAD]&lt;/SPAN&gt;),1)='*',Date(Date#(&lt;SPAN&gt;[Text_BSAD],'D/M/YY'&lt;/SPAN&gt;),'MM/DD/YYYY'),Date(Date#(&lt;SPAN&gt;[Clearing date_BSAD],'YYYY-MM-DD'),'MM/DD/YYYY')) as New_date&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Then in the front end you can write the below expression.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Sum(&amp;nbsp;{&amp;lt;[Document Type_BSAD] = {'R1'},[Clearing date_BSAD]={"&amp;gt;$(=Date(Max(New_date)-7,'MM/DD/YYYY'))&amp;lt;$(=Max(New_date))"}&amp;gt;}[Amount in LC_BSAD])&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can change the date format as per your requirment.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also, please let me know if my understanding is right and if this solution has helped you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jul 2022 11:14:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-Value-Set-when-Data-not-select/m-p/1962535#M1220195</guid>
      <dc:creator>sidhiq91</dc:creator>
      <dc:date>2022-07-30T11:14:35Z</dc:date>
    </item>
  </channel>
</rss>

