<?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 Display suppliers without purchase orders in the past 6 months (date selection) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Display-suppliers-without-purchase-orders-in-the-past-6-months/m-p/1731940#M55865</link>
    <description>&lt;P&gt;Hi people!,&lt;/P&gt;&lt;P&gt;I'm trying to build a chart where I show data of suppliers with no purchase orders in the past 6 months. But that alone would be kinda lame, I was also thinking of adding the amount of purchase orders they had PRIOR to that 6 months period without purchase orders. This in a bar chart. So, I present the suppliers with no PO dimension, and a measure showing the amount of PO they had prior to that date.&lt;/P&gt;&lt;P&gt;I did it in script by adding flags, but that won't do if I want to work based on date selections, it's a bit static &lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;. That's why I came tou you guys, to see if you can help me. I kinda understand the aggr function would work here, but as I'm not that good with it, I came hoping for some advice and help.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 01:46:35 GMT</pubDate>
    <dc:creator>José_Espinoza</dc:creator>
    <dc:date>2024-11-16T01:46:35Z</dc:date>
    <item>
      <title>Display suppliers without purchase orders in the past 6 months (date selection)</title>
      <link>https://community.qlik.com/t5/App-Development/Display-suppliers-without-purchase-orders-in-the-past-6-months/m-p/1731940#M55865</link>
      <description>&lt;P&gt;Hi people!,&lt;/P&gt;&lt;P&gt;I'm trying to build a chart where I show data of suppliers with no purchase orders in the past 6 months. But that alone would be kinda lame, I was also thinking of adding the amount of purchase orders they had PRIOR to that 6 months period without purchase orders. This in a bar chart. So, I present the suppliers with no PO dimension, and a measure showing the amount of PO they had prior to that date.&lt;/P&gt;&lt;P&gt;I did it in script by adding flags, but that won't do if I want to work based on date selections, it's a bit static &lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;. That's why I came tou you guys, to see if you can help me. I kinda understand the aggr function would work here, but as I'm not that good with it, I came hoping for some advice and help.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:46:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-suppliers-without-purchase-orders-in-the-past-6-months/m-p/1731940#M55865</guid>
      <dc:creator>José_Espinoza</dc:creator>
      <dc:date>2024-11-16T01:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Display suppliers without purchase orders in the past 6 months (date selection)</title>
      <link>https://community.qlik.com/t5/App-Development/Display-suppliers-without-purchase-orders-in-the-past-6-months/m-p/1731954#M55866</link>
      <description>&lt;P&gt;I have an idea. Supposed that you have a dimension table of suppliers, then you can handle to add a new field in data load, or by a aggr dimension on GUI like:&lt;/P&gt;&lt;P&gt;last_purchase_order_date: aggr(max(purchase_order_date), supplier)&lt;/P&gt;&lt;P&gt;vMaxDate = max(Date) : to get the selected date. make sure the field of date is not the&amp;nbsp;purchase_order_date to avoid your filter is also applied on the sum(purchase_order_date)&lt;/P&gt;&lt;P&gt;Then, when on chart you can measure like:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;if (last_purchase_order_date &amp;lt;&amp;nbsp;&lt;SPAN class="script_token"&gt;AddMonths(&lt;/SPAN&gt;$(vMaxDate), 6 ) , sum(purchase_orders_amount), null())&lt;/P&gt;&lt;P&gt;On chart, uncheck: show null() value on dimension&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 06:37:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-suppliers-without-purchase-orders-in-the-past-6-months/m-p/1731954#M55866</guid>
      <dc:creator>thi_pham</dc:creator>
      <dc:date>2020-07-30T06:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Display suppliers without purchase orders in the past 6 months (date selection)</title>
      <link>https://community.qlik.com/t5/App-Development/Display-suppliers-without-purchase-orders-in-the-past-6-months/m-p/1732009#M55869</link>
      <description>&lt;P&gt;I've made something similar to your requirement&lt;BR /&gt;I displayed the customers with no sales in a selected period of time, with the last invoice date, last invoice number and last invoice amount&lt;/P&gt;&lt;P&gt;so you select a period of time and you want the suppliers with no order transactions in that period&lt;BR /&gt;your suppliers are in the Excluded set of data&lt;BR /&gt;I suggest that you send a sample file so that I can help you with your requirement but below is an expression is use to display the customers not served or with no sales in a selected period of time&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;so suppose you made a pivot table with Customer as dimension, your expression would look something like this:&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;suppose you want to display the last invoice number of customers with no sales&lt;BR /&gt;max(&lt;BR /&gt;{1&lt;BR /&gt;&amp;lt;&lt;BR /&gt;salesman_name=$::salesman_name,&lt;BR /&gt;company_name=$::company_name,&lt;BR /&gt;branch_customer.customer_code = E(&lt;BR /&gt;{&lt;BR /&gt;&amp;lt;&lt;BR /&gt;trx_type={'Sales'}&lt;BR /&gt;,branch_customer.customer_status = {'active'}&lt;BR /&gt;,branch_customer.customer_code = {"=Sum({&amp;lt;trx_type={'Sales'}&amp;gt;} amount_usd)&amp;gt;0"}&lt;BR /&gt;&amp;gt;&lt;BR /&gt;} branch_customer.customer_code)&lt;BR /&gt;,trx_type = {'sales'}&lt;BR /&gt;,branch_customer.customer_status={'active'}&lt;BR /&gt;,YEAR=,MONTH=,MONTH_NUM=,MONTH_YEAR=,DAY=&lt;BR /&gt;,trx_date={'&amp;lt;=$(vEOM_LastMonth)'}&lt;BR /&gt;&amp;gt;&lt;BR /&gt;}invoice_number)&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 10:22:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Display-suppliers-without-purchase-orders-in-the-past-6-months/m-p/1732009#M55869</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2020-07-30T10:22:26Z</dc:date>
    </item>
  </channel>
</rss>

