<?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 Aggr with variables and date filters in Featured Members</title>
    <link>https://community.qlik.com/t5/Featured-Members/Aggr-with-variables-and-date-filters/m-p/2487206#M371</link>
    <description>&lt;P&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;Preciso de ajuda com essa expressão no QlikSense. O problema é que do jeito que estou fazendo, não está trazendo resultados para ItemOrderSaleQuantityInvoiced. Preciso que minha tabela seja aberta na linha por ProductLastEntryDateSite, e como medida trazer a quantidade de peças que estão no campo ItemOrderSaleQuantityInvoiced, com essa quantidade para cada ProductCode, considerando que cada ProductCode tem um ProductLastEntryDateSite e a partir dessa data considerar + 45 dias no futuro, que seria meu faturamento. Alguém tem ideia de como posso tratar minha medida para obter esse cenário citado?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;Se(ProductLastEntryDateSite &amp;gt;= '$(v.CutStartDate)', &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;Sum( &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;Aggr( &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;Sum( &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;{&amp;lt; &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;//ProductCode, &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;Date = {"&amp;gt;=$(=Data(Max(ProductLastEntryDateSite)))&amp;lt;=$(=Data(Max(ProductLastEntryDateSite)+45))"}, &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;YearMonth = {"&amp;gt;=$(=MonthName(Max(ProductLastEntryDateSite)))&amp;lt;=$(=MonthName(Max(ProductLastEntryDateSite)+45))"}, &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;Year = {"&amp;gt;=$(=Year(Max(ProductLastEntryDateSite)))&amp;lt;=$(=Year(Max(ProductLastEntryDateSite)+45))"} &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;TransactionType = {'Faturamento'}, &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;BusinessTransaction = {'E-commerce'} &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;ProductCode = &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;&amp;gt;} &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;OrderItemSaleQuantityInvoiced &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;), &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;ProdutoAnoMêsÚltimaEntradaSite &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;) &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;), '')&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarlucedCosta_0-1729035535541.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/172975i7D12A766069C1094/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarlucedCosta_0-1729035535541.png" alt="MarlucedCosta_0-1729035535541.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Oct 2024 23:41:12 GMT</pubDate>
    <dc:creator>Marluce-dCosta</dc:creator>
    <dc:date>2024-10-15T23:41:12Z</dc:date>
    <item>
      <title>Aggr with variables and date filters</title>
      <link>https://community.qlik.com/t5/Featured-Members/Aggr-with-variables-and-date-filters/m-p/2487206#M371</link>
      <description>&lt;P&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;Preciso de ajuda com essa expressão no QlikSense. O problema é que do jeito que estou fazendo, não está trazendo resultados para ItemOrderSaleQuantityInvoiced. Preciso que minha tabela seja aberta na linha por ProductLastEntryDateSite, e como medida trazer a quantidade de peças que estão no campo ItemOrderSaleQuantityInvoiced, com essa quantidade para cada ProductCode, considerando que cada ProductCode tem um ProductLastEntryDateSite e a partir dessa data considerar + 45 dias no futuro, que seria meu faturamento. Alguém tem ideia de como posso tratar minha medida para obter esse cenário citado?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;Se(ProductLastEntryDateSite &amp;gt;= '$(v.CutStartDate)', &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;Sum( &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;Aggr( &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;Sum( &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;{&amp;lt; &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;//ProductCode, &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;Date = {"&amp;gt;=$(=Data(Max(ProductLastEntryDateSite)))&amp;lt;=$(=Data(Max(ProductLastEntryDateSite)+45))"}, &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;YearMonth = {"&amp;gt;=$(=MonthName(Max(ProductLastEntryDateSite)))&amp;lt;=$(=MonthName(Max(ProductLastEntryDateSite)+45))"}, &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;Year = {"&amp;gt;=$(=Year(Max(ProductLastEntryDateSite)))&amp;lt;=$(=Year(Max(ProductLastEntryDateSite)+45))"} &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;TransactionType = {'Faturamento'}, &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;BusinessTransaction = {'E-commerce'} &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;ProductCode = &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;&amp;gt;} &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;OrderItemSaleQuantityInvoiced &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;), &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;ProdutoAnoMêsÚltimaEntradaSite &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;) &lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;), '')&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarlucedCosta_0-1729035535541.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/172975i7D12A766069C1094/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarlucedCosta_0-1729035535541.png" alt="MarlucedCosta_0-1729035535541.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 23:41:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Featured-Members/Aggr-with-variables-and-date-filters/m-p/2487206#M371</guid>
      <dc:creator>Marluce-dCosta</dc:creator>
      <dc:date>2024-10-15T23:41:12Z</dc:date>
    </item>
  </channel>
</rss>

