<?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: Group by in Resident Load issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Group-by-in-Resident-Load-issue/m-p/1747515#M721837</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/44131"&gt;@sarahshong&lt;/a&gt;&amp;nbsp; try below&lt;/P&gt;&lt;P&gt;Prices:&lt;BR /&gt;LOAD&lt;BR /&gt;DATE as DATE_OLD,&lt;BR /&gt;IDX_NM,&lt;BR /&gt;OUTPUT_PRC,&lt;BR /&gt;GRIDPT_LABEL_TXT,&lt;BR /&gt;FROM Price (qvd)&lt;BR /&gt;WHERE DATE&amp;gt;'12/30/18' and DATE&amp;lt;'02/28/2019'&amp;nbsp;;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Left Join&lt;BR /&gt;LOAD&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATE as DATE_OLD,&lt;BR /&gt;DATE_NEW AS DATE,&lt;BR /&gt;Month(DATE) as EODMonth,&lt;BR /&gt;Day(DATE) as EODDay,&lt;BR /&gt;Year(DATE) as EODYear,&lt;BR /&gt;DAYOFWEEK&lt;/P&gt;&lt;P&gt;FROM&lt;BR /&gt;[Dates.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1)&lt;BR /&gt;WHERE DATE&amp;gt;'12/30/18' and DATE&amp;lt;'02/28/2019';&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;left join&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Day as EODDay,&lt;BR /&gt;Cycle as CYCLE&lt;BR /&gt;FROM&lt;BR /&gt;[Cycle.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet2);&lt;/P&gt;&lt;P&gt;No Concatenate&lt;BR /&gt;LOAD&lt;BR /&gt;IDX_NM,&lt;BR /&gt;GRIDPT_LABEL_TXT,&lt;BR /&gt;EODMonth,&lt;BR /&gt;CYCLE,&lt;BR /&gt;Avg(OUTPUT_PRC) as CYCLE_AVG&lt;/P&gt;&lt;P&gt;Resident Prices Group by IDX_NM,GRIDPT_LABEL_TXT,EODMonth,CYCLE;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;drop table Prices;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 27 Sep 2020 21:32:17 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2020-09-27T21:32:17Z</dc:date>
    <item>
      <title>Group by in Resident Load issue</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-in-Resident-Load-issue/m-p/1747509#M721836</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having an issue aggregating my price output to a certain level. I have my first data table left joined to another table that maps out missing weekends and holiday dates in Excel. From there I am trying to map each day in the month to a particular cycle (days 1-10 are cycle 1, days 11-20 are cycle 2, days 21-31 are cycle 3).&lt;/P&gt;&lt;P&gt;I want to be able to calculate an average from per cycle for a given Index (IDX_NM), Gridpoint Label, and Month (EODMonth).&lt;/P&gt;&lt;P&gt;I've tried a few variations of the script below and not sure what else to try. The goal is to have a average price (CYCLE_AVG) per day. So the CYCLE_AVG for Jan 1-Jan10 for a IDX_NM/GRIDPT_LABEL_TXT would be the same value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas on how I can achieve this?&amp;nbsp; The reason I would like to create a field for this in the script versus a formula in a pivot chart is because I was having difficulty multiplying daily values with aggregated averages without showing CYCLE as a dimension.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Prices:&lt;BR /&gt;LOAD&lt;BR /&gt;DATE as DATE_OLD,&lt;BR /&gt;IDX_NM,&lt;BR /&gt;OUTPUT_PRC,&lt;BR /&gt;GRIDPT_LABEL_TXT,&lt;BR /&gt;FROM Price (qvd)&lt;BR /&gt;WHERE DATE&amp;gt;'12/30/18' and DATE&amp;lt;'02/28/2019'&amp;nbsp;;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Left Join&lt;BR /&gt;LOAD&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATE as DATE_OLD,&lt;BR /&gt;DATE_NEW AS DATE,&lt;BR /&gt;Month(DATE) as EODMonth,&lt;BR /&gt;Day(DATE) as EODDay,&lt;BR /&gt;Year(DATE) as EODYear,&lt;BR /&gt;DAYOFWEEK&lt;/P&gt;&lt;P&gt;FROM&lt;BR /&gt;[Dates.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1)&lt;BR /&gt;WHERE DATE&amp;gt;'12/30/18' and DATE&amp;lt;'02/28/2019';&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Day as EODDay,&lt;BR /&gt;Cycle as CYCLE&lt;BR /&gt;FROM&lt;BR /&gt;[Cycle.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet2);&lt;/P&gt;&lt;P&gt;No Concatenate&lt;BR /&gt;LOAD&lt;BR /&gt;IDX_NM,&lt;BR /&gt;GRIDPT_LABEL_TXT,&lt;BR /&gt;EODMonth,&lt;BR /&gt;CYCLE,&lt;BR /&gt;Avg(OUTPUT_PRC) as CYCLE_AVG&lt;/P&gt;&lt;P&gt;Resident Prices Group by IDX_NM,GRIDPT_LABEL_TXT,EODMonth,CYCLE;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-in-Resident-Load-issue/m-p/1747509#M721836</guid>
      <dc:creator>sarahshong</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Group by in Resident Load issue</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-in-Resident-Load-issue/m-p/1747515#M721837</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/44131"&gt;@sarahshong&lt;/a&gt;&amp;nbsp; try below&lt;/P&gt;&lt;P&gt;Prices:&lt;BR /&gt;LOAD&lt;BR /&gt;DATE as DATE_OLD,&lt;BR /&gt;IDX_NM,&lt;BR /&gt;OUTPUT_PRC,&lt;BR /&gt;GRIDPT_LABEL_TXT,&lt;BR /&gt;FROM Price (qvd)&lt;BR /&gt;WHERE DATE&amp;gt;'12/30/18' and DATE&amp;lt;'02/28/2019'&amp;nbsp;;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Left Join&lt;BR /&gt;LOAD&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATE as DATE_OLD,&lt;BR /&gt;DATE_NEW AS DATE,&lt;BR /&gt;Month(DATE) as EODMonth,&lt;BR /&gt;Day(DATE) as EODDay,&lt;BR /&gt;Year(DATE) as EODYear,&lt;BR /&gt;DAYOFWEEK&lt;/P&gt;&lt;P&gt;FROM&lt;BR /&gt;[Dates.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1)&lt;BR /&gt;WHERE DATE&amp;gt;'12/30/18' and DATE&amp;lt;'02/28/2019';&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;left join&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Day as EODDay,&lt;BR /&gt;Cycle as CYCLE&lt;BR /&gt;FROM&lt;BR /&gt;[Cycle.xlsx]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet2);&lt;/P&gt;&lt;P&gt;No Concatenate&lt;BR /&gt;LOAD&lt;BR /&gt;IDX_NM,&lt;BR /&gt;GRIDPT_LABEL_TXT,&lt;BR /&gt;EODMonth,&lt;BR /&gt;CYCLE,&lt;BR /&gt;Avg(OUTPUT_PRC) as CYCLE_AVG&lt;/P&gt;&lt;P&gt;Resident Prices Group by IDX_NM,GRIDPT_LABEL_TXT,EODMonth,CYCLE;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;drop table Prices;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Sep 2020 21:32:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-in-Resident-Load-issue/m-p/1747515#M721837</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-09-27T21:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Group by in Resident Load issue</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-in-Resident-Load-issue/m-p/1747528#M721838</link>
      <description>&lt;P&gt;Hi Kush thanks for replying !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately I cannot drop the prices table at the end because then I lose the OUTPUT_PRC and other Date fields that I still need. What I'm looking for is for CYCLE AVG to be equal to the average of the prices for that cycle and associate that to each individual day (DATE) within that cycle ,&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 00:32:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-in-Resident-Load-issue/m-p/1747528#M721838</guid>
      <dc:creator>sarahshong</dc:creator>
      <dc:date>2020-09-28T00:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Group by in Resident Load issue</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-in-Resident-Load-issue/m-p/1747529#M721839</link>
      <description>&lt;P&gt;I believe I found the solution. I had to right join the last table instead of no concatenate. Thank you for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 00:39:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-in-Resident-Load-issue/m-p/1747529#M721839</guid>
      <dc:creator>sarahshong</dc:creator>
      <dc:date>2020-09-28T00:39:58Z</dc:date>
    </item>
  </channel>
</rss>

