<?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: Pivot Table Aggr and Distinct Help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411402#M810810</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just went through the excel file, there are 220 IF for "OR" in the excel for sure.&lt;/P&gt;&lt;P&gt;Keep counting the IF in the Raw Pivot and keep coming up around 186 for them. So something is off in the original IF formula.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Oct 2017 17:30:28 GMT</pubDate>
    <dc:creator>joshrussin</dc:creator>
    <dc:date>2017-10-06T17:30:28Z</dc:date>
    <item>
      <title>Pivot Table Aggr and Distinct Help</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411395#M810803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a pivot table that I am trying to find a way to get the Sum of "On-Time", "In-Full" as well as "On-time and In-full."&lt;/P&gt;&lt;P&gt;It has taken a lot to get to this point and a lot of help from the community. But I have a raw data file that I am trying to figure out what the percentages of deliveries that are On-Time and In-Full. In the attached excel file, shows the correct output I am trying to reach. In my QV file there are some expressions that&lt;EM&gt; &lt;/EM&gt;I need help with. The raw data shows every item per delivery, not just deliveries. So for the Comp Pivot table, for the count of delivery, I had to do a DISTINCT for the delivery because I was getting 392 rather than the correct 19. For the other calculations I need, is there any way to get the sum based of the distinct deliveries rather than the raw item data. Here is what the output should look like.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="178888" alt="KPI_0028.jpg" class="jive-image image-1" height="181" src="https://community.qlik.com/legacyfs/online/178888_KPI_0028.jpg" style="height: 181.052px; width: 422px;" width="422" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="178898" alt="KPI_0031.jpg" class="jive-image image-2" height="162" src="https://community.qlik.com/legacyfs/online/178898_KPI_0031.jpg" style="height: 161.305px; width: 275px;" width="275" /&gt;&lt;/P&gt;&lt;P&gt;And so far, the QV file is almost there, just need to figure out how to get the DISTINCT data per delivery for the following totals.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="178901" alt="KPI_0030.jpg" class="jive-image image-3" height="161" src="https://community.qlik.com/legacyfs/online/178901_KPI_0030.jpg" style="height: 160.65px; width: 459px;" width="459" /&gt;&lt;/P&gt;&lt;P&gt;After those are based of the DISTINCT delivery #, I should be able to figure out the percentages below.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="178902" alt="2017-10-06_11-08-17.jpg" class="image-4 jive-image" height="94" src="https://community.qlik.com/legacyfs/online/178902_2017-10-06_11-08-17.jpg" style="height: 93.0742px; width: 473px;" width="473" /&gt;&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/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411395#M810803</guid>
      <dc:creator>joshrussin</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Aggr and Distinct Help</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411396#M810804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="Pivot.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/178867_Pivot.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;[compare AC PI Date]={1}&amp;gt;} distinct Delivery_OTIF)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 16:44:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411396#M810804</guid>
      <dc:creator>vvira1316</dc:creator>
      <dc:date>2017-10-06T16:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Aggr and Distinct Help</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411397#M810805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wonder why the IF is coming up a little differently.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 16:57:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411397#M810805</guid>
      <dc:creator>joshrussin</dc:creator>
      <dc:date>2017-10-06T16:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Aggr and Distinct Help</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411398#M810806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joshua,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure why IF is having issuebut OT is working in both cases as can be seen from screen shots.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Formulas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;[compare AC PI Date]={1}&amp;gt;} distinct Delivery_OTIF)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;Count(distinct Delivery_OTIF)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Pivot2.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/178910_Pivot2.PNG" style="width: 620px; height: 317px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Pivot3.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/178911_Pivot3.PNG" style="width: 620px; height: 247px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 17:03:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411398#M810806</guid>
      <dc:creator>vvira1316</dc:creator>
      <dc:date>2017-10-06T17:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Aggr and Distinct Help</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411399#M810807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Same as what I'm getting. I tried the same formula that excel uses for IF, but that throws the number completely off. The way I have it, gets it pretty close. Maybe I just need to figure out a new formula. I appreciate you toughing this one out and helping me with this. I've got the IF within 1100 orders total, but still not there yet. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 17:09:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411399#M810807</guid>
      <dc:creator>joshrussin</dc:creator>
      <dc:date>2017-10-06T17:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Aggr and Distinct Help</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411400#M810808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be rounding issue for some rows. We were typing at the same time &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 17:11:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411400#M810808</guid>
      <dc:creator>vvira1316</dc:creator>
      <dc:date>2017-10-06T17:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Aggr and Distinct Help</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411401#M810809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For most it is matching. let's focus on where it is not matching and take raw data for those ones to try and see what may be causing it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 17:16:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411401#M810809</guid>
      <dc:creator>vvira1316</dc:creator>
      <dc:date>2017-10-06T17:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Aggr and Distinct Help</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411402#M810810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just went through the excel file, there are 220 IF for "OR" in the excel for sure.&lt;/P&gt;&lt;P&gt;Keep counting the IF in the Raw Pivot and keep coming up around 186 for them. So something is off in the original IF formula.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 17:30:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411402#M810810</guid>
      <dc:creator>joshrussin</dc:creator>
      <dc:date>2017-10-06T17:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Aggr and Distinct Help</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411403#M810811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried a few different formulas and can't seem to figure out what is causing the issue. Either I am coming up with a completely wrong number or just blanks. Have you seen anywhere this could be catching up in the raw data? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 19:37:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411403#M810811</guid>
      <dc:creator>joshrussin</dc:creator>
      <dc:date>2017-10-06T19:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Aggr and Distinct Help</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411404#M810812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not yet, I was away for a while. I will keep looking&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Oct 2017 21:00:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411404#M810812</guid>
      <dc:creator>vvira1316</dc:creator>
      <dc:date>2017-10-06T21:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Aggr and Distinct Help</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411405#M810813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joshua,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is caused by multiple rows for grouping by SaTy, Delivery_OTIF, Ac , and PI Date. as can be seen from attached excel file of OR Analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script will have to be modified to get right result. I've simplified to get right values. You adapt it as per your need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;DataFile1:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;SaTy_OTIF &amp;amp; Chr(59) &amp;amp; Delivery_OTIF &amp;amp; Chr(59) &amp;amp; "Pl GI date_OTIF" &amp;amp; Chr(59) &amp;amp; "Ac GI date_OTIF" as "Table Key",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Material_OTIF,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Batch_OTIF,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Delivery quantity_OTIF",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Order Quantity_OTIF",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Delivery_OTIF,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Pl GI date_OTIF",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Ac GI date_OTIF",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SU_OTIF,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Sales Doc_OTIF",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SaTy_OTIF&lt;/P&gt;&lt;P&gt;FROM [lib://DataFolder/OTIF Data Old_August.XLSX]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is [RAW DATA])&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;DataFile2:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum("Delivery quantity_OTIF") as "Sum Delivery quantity_OTIF",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum("Order Quantity_OTIF") as "Sum Order Quantity_OTIF",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If((Sum("Delivery quantity_OTIF") - Sum("Order Quantity_OTIF")) &amp;gt;= 0, 1, 0) as "Qty IF if Positive",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If((num(date([Ac GI date_OTIF]))-num(Date([Pl GI date_OTIF]))) &amp;lt;= 0, 1, 0) as "compare AC PI Date",&lt;/P&gt;&lt;P&gt;If((Sum("Delivery quantity_OTIF") - Sum("Order Quantity_OTIF")) &amp;gt;= 0 and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (num(date([Ac GI date_OTIF]))-num(Date([Pl GI date_OTIF]))) &amp;lt;= 0, 1, 0) as OTIF,&lt;/P&gt;&lt;P&gt;SaTy_OTIF &amp;amp; Chr(59) &amp;amp; Delivery_OTIF &amp;amp; Chr(59) &amp;amp; "Pl GI date_OTIF" &amp;amp; Chr(59) &amp;amp; "Ac GI date_OTIF" as "Table Key"&lt;/P&gt;&lt;P&gt;Resident DataFile1&lt;/P&gt;&lt;P&gt;Group By SaTy_OTIF, Delivery_OTIF, "Ac GI date_OTIF", "Pl GI date_OTIF";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table DataFile1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="178945" alt="Pivot.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/178945_Pivot.JPG" style="height: 337px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Oct 2017 04:42:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411405#M810813</guid>
      <dc:creator>vvira1316</dc:creator>
      <dc:date>2017-10-08T04:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Aggr and Distinct Help</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411406#M810814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh wow, I would have never seen that. Thank you so much. I will be working on this later today. How could I edit the list instead of the filter to only have the specific types I need? Also a way to group them as Internal, Domestic, or OUS? Kind of like the IF statement I had before. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2017 13:53:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411406#M810814</guid>
      <dc:creator>joshrussin</dc:creator>
      <dc:date>2017-10-09T13:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Aggr and Distinct Help</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411407#M810815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nevermind, I just wrapped that within an IF statement and worked. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2017 14:43:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411407#M810815</guid>
      <dc:creator>joshrussin</dc:creator>
      <dc:date>2017-10-09T14:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Aggr and Distinct Help</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411408#M810816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to run the report for September now instead of August and now there are differences. Can you take a look please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 15:38:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411408#M810816</guid>
      <dc:creator>joshrussin</dc:creator>
      <dc:date>2017-10-13T15:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Aggr and Distinct Help</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411409#M810817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joshua,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sure. I'll take a look at it and let you know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 16:35:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411409#M810817</guid>
      <dc:creator>vvira1316</dc:creator>
      <dc:date>2017-10-13T16:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Aggr and Distinct Help</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411410#M810818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joshua,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any reason there is change in time delta calculation in Excel? Please see the screen shot below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt;"&gt;&lt;STRONG&gt;Is it suppose to be Ac - Pl or Pl - Ac&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt;"&gt;&lt;STRONG&gt;In Excel it is Pl - Ac&lt;/STRONG&gt;&lt;/SPAN&gt; (OT calculation formula is "=IF(G510&amp;lt;=0,1,0)") This is causing difference and it is change in logic. Please confirm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ChangeInCalculation.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/179602_ChangeInCalculation.PNG" style="width: 620px; height: 138px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-size: 12pt;"&gt;&lt;STRONG&gt;In script it is Ac - Pl&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Pl GI date_OTIF",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Ac GI date_OTIF",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SU_OTIF,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Sales Doc_OTIF",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SaTy_OTIF&lt;BR /&gt; FROM [lib://qlikid_joshrussin/sept_otif_my_version.XLSX]&lt;/P&gt;&lt;P&gt;//Previous Month&lt;BR /&gt;// FROM [lib://qlikid_joshrussin/OTIF Data.XLSX]&lt;BR /&gt;//From August (only one that completely matches up&lt;BR /&gt;// FROM [lib://qlikid_joshrussin/OTIF Data Old_August.XLSX]&lt;BR /&gt;//From September with data I pulled&lt;BR /&gt;// FROM [lib://qlikid_joshrussin/OTIF Data_Sept_Me.XLSX]&lt;BR /&gt;//From September with data James pulled&lt;BR /&gt;// FROM [lib://qlikid_joshrussin/OTIF Data_Sept_James.XLSX]&lt;BR /&gt;//From July (somewhat matches up)&lt;BR /&gt;// FROM [lib://qlikid_joshrussin/July OTIF.XLSX]&lt;BR /&gt;(ooxml, embedded labels, table is [RAW DATA]);&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;BR /&gt;DataFile2:&lt;BR /&gt;Load &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum("Delivery quantity_OTIF") as "Sum Delivery quantity_OTIF",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum("Order Quantity_OTIF") as "Sum Order Quantity_OTIF",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If((Sum("Delivery quantity_OTIF") - Sum("Order Quantity_OTIF")) &amp;gt;= 0, 1, 0) as "Qty IF if Positive",&lt;BR /&gt;&lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If((num(date([Ac GI date_OTIF]))-num(Date([Pl GI date_OTIF]))) &amp;lt;= 0, 1, 0) as "compare AC PI Date",&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt; If((Sum("Delivery quantity_OTIF") - Sum("Order Quantity_OTIF")) &amp;gt;= 0 and&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (num(date([Ac GI date_OTIF]))-num(Date([Pl GI date_OTIF]))) &amp;lt;= 0, 1, 0) as OTIF,&lt;BR /&gt; SaTy_OTIF &amp;amp; Chr(59) &amp;amp; Delivery_OTIF &amp;amp; Chr(59) &amp;amp; "Pl GI date_OTIF" &amp;amp; Chr(59) &amp;amp; "Ac GI date_OTIF" as "Table Key"&lt;BR /&gt;Resident DataFile1&lt;BR /&gt;Group By SaTy_OTIF, Delivery_OTIF, "Ac GI date_OTIF", "Pl GI date_OTIF";&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 18:52:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411410#M810818</guid>
      <dc:creator>vvira1316</dc:creator>
      <dc:date>2017-10-13T18:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Aggr and Distinct Help</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411411#M810819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Qlik Formula is right, one of the clients ran the data in excel and their data formula was wrong. They read the workflow backwards. So from here on out, we should be good with this table. Thank you so much for your patience and help. I really can't thank you enough. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 21:55:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411411#M810819</guid>
      <dc:creator>joshrussin</dc:creator>
      <dc:date>2017-10-13T21:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Aggr and Distinct Help</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411412#M810820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm glad that it was their mistake, now they can understand that we put in lot of effort to get information right....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 22:07:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411412#M810820</guid>
      <dc:creator>vvira1316</dc:creator>
      <dc:date>2017-10-13T22:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Aggr and Distinct Help</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411413#M810821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh they apologized a lot for it, the bad thing was they already submitted what they came up with to their superiors and had to tell them they were wrong. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 13:30:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411413#M810821</guid>
      <dc:creator>joshrussin</dc:creator>
      <dc:date>2017-10-16T13:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table Aggr and Distinct Help</title>
      <link>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411414#M810822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi, Did you get answer on your other question you had posted?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 15:34:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pivot-Table-Aggr-and-Distinct-Help/m-p/1411414#M810822</guid>
      <dc:creator>vvira1316</dc:creator>
      <dc:date>2017-10-16T15:34:28Z</dc:date>
    </item>
  </channel>
</rss>

