<?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 a dimension. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Group-by-a-dimension/m-p/876352#M469741</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Dimensionality() = 0, YourExpressions) &lt;/STRONG&gt;for all the three expressions and see if that does the trick for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jun 2015 17:16:32 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-06-22T17:16:32Z</dc:date>
    <item>
      <title>Group by a dimension.</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-a-dimension/m-p/876345#M469734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to group the data w.r.t the dimension Warehouse.&lt;/P&gt;&lt;P&gt;When a warehouse is selected , intstead of seeing all the records with a total in a table.&lt;/P&gt;&lt;P&gt;I wanna see only the total of the data in the columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please look at the atatchment - Table "0-8 WOH"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 16:40:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-a-dimension/m-p/876345#M469734</guid>
      <dc:creator>markgraham123</dc:creator>
      <dc:date>2015-06-22T16:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Group by a dimension.</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-a-dimension/m-p/876346#M469735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you reduce the size of the document?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 16:57:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-a-dimension/m-p/876346#M469735</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-22T16:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Group by a dimension.</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-a-dimension/m-p/876347#M469736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to. I was not able to reduce the size.&lt;/P&gt;&lt;P&gt;Here is the screenshot for your reference.&lt;/P&gt;&lt;P&gt;I was trying to have only one column, which shows the total sum of SKUs, pallets, and units.&lt;/P&gt;&lt;P&gt;Instead of many columns.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 17:08:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-a-dimension/m-p/876347#M469736</guid>
      <dc:creator>markgraham123</dc:creator>
      <dc:date>2015-06-22T17:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Group by a dimension.</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-a-dimension/m-p/876348#M469737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If((Sum([Qty On Hand])/([360-day Velocity]/52))&amp;gt;=0 and (Sum([Qty On Hand])/([360-day Velocity]/52))&amp;lt;=8, Count(Distinct(SKU#)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If((Sum([Qty On Hand])/([360-day Velocity]/52))&amp;gt;=0 and (Sum([Qty On Hand])/([360-day Velocity]/52))&amp;lt;=8,Sum([Units Packed]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If((Sum([Qty On Hand])/([360-day Velocity]/52))&amp;gt;=0 and (Sum([Qty On Hand])/([360-day Velocity]/52))&amp;lt;=8, Aggr(Count(LBCD),SKU#))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are the exp. used&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 17:12:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-a-dimension/m-p/876348#M469737</guid>
      <dc:creator>markgraham123</dc:creator>
      <dc:date>2015-06-22T17:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Group by a dimension.</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-a-dimension/m-p/876349#M469738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great and is this the part you are looking for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/90315_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and nothing below it, right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 17:14:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-a-dimension/m-p/876349#M469738</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-22T17:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Group by a dimension.</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-a-dimension/m-p/876350#M469739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes.&lt;/P&gt;&lt;P&gt;Exactly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 17:15:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-a-dimension/m-p/876350#M469739</guid>
      <dc:creator>markgraham123</dc:creator>
      <dc:date>2015-06-22T17:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Group by a dimension.</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-a-dimension/m-p/876351#M469740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With a warehouse name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 17:15:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-a-dimension/m-p/876351#M469740</guid>
      <dc:creator>markgraham123</dc:creator>
      <dc:date>2015-06-22T17:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Group by a dimension.</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-a-dimension/m-p/876352#M469741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Dimensionality() = 0, YourExpressions) &lt;/STRONG&gt;for all the three expressions and see if that does the trick for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 17:16:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-a-dimension/m-p/876352#M469741</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-22T17:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Group by a dimension.</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-a-dimension/m-p/876353#M469742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which warehouse name?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 17:16:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-a-dimension/m-p/876353#M469742</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-22T17:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Group by a dimension.</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-a-dimension/m-p/876354#M469743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Derz a Warehouse name OB2 mentione din the screenshot.&lt;/P&gt;&lt;P&gt;All the values correspond to that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 17:17:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-a-dimension/m-p/876354#M469743</guid>
      <dc:creator>markgraham123</dc:creator>
      <dc:date>2015-06-22T17:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Group by a dimension.</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-a-dimension/m-p/876355#M469744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expression labelled SKUs is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;If((Sum([Qty On Hand])/([360-day Velocity]/52))&amp;gt;=0 and (Sum([Qty On Hand])/([360-day Velocity]/52))&amp;lt;=8, Count(Distinct(SKU#)))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Within it you have field &lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;[360-day Velocity] &lt;/EM&gt;&lt;/SPAN&gt;with&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/SPAN&gt;no aggregation function so it will default to using the Only() function and unless all the values are the same for every row in each discrete warehouse it will return null() and you will get the results you are experiencing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How about doing the condition in the load script and creating at the row level a new flag field with something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;EM&gt;If((Sum([Qty On Hand])/([360-day Velocity]/52))&amp;gt;=0 and (Sum([Qty On Hand])/([360-day Velocity]/52))&amp;lt;=8, 1,0) as [360LE8Flag] ,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This flag can then be used in Set analysis in your Chart object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Backing off such calculations into the load script is always good for efficiency, as they are just calculated&amp;nbsp; once during the load as opposed to dynamically in the GUI whilst the End Users are twiddling there thumbs and getting frustrated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you get the first Chart Expression working then do the other expressions similarly.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 17:22:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-a-dimension/m-p/876355#M469744</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-22T17:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Group by a dimension.</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-a-dimension/m-p/876356#M469745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are trying to get this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Warehouse&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;SKUs&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Units&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Pallets&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;OBS&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;118187&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;13150406&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2799319&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 17:24:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-a-dimension/m-p/876356#M469745</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-22T17:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Group by a dimension.</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-a-dimension/m-p/876357#M469746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot include it in the script part,&lt;/P&gt;&lt;P&gt;Coz derz already preceeding load, resident laod and joins in the script which makes few fields unavailable.&lt;/P&gt;&lt;P&gt;Any solution to do it in Front end??&lt;/P&gt;&lt;P&gt;Please lemme knw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 17:27:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-a-dimension/m-p/876357#M469746</guid>
      <dc:creator>markgraham123</dc:creator>
      <dc:date>2015-06-22T17:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Group by a dimension.</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-a-dimension/m-p/876358#M469747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes.&lt;/P&gt;&lt;P&gt;How did u do it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 17:41:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-a-dimension/m-p/876358#M469747</guid>
      <dc:creator>markgraham123</dc:creator>
      <dc:date>2015-06-22T17:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Group by a dimension.</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-a-dimension/m-p/876359#M469748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was a question, I have not done anything yet &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 17:48:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-a-dimension/m-p/876359#M469748</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-22T17:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Group by a dimension.</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-a-dimension/m-p/876360#M469749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try these expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) &lt;STRONG&gt;If(Dimensionality() = 0, Sum(Aggr(If((Sum([Qty On Hand])/([360-day Velocity]/52))&amp;gt;=0 and (Sum([Qty On Hand])/([360-day Velocity]/52))&amp;lt;=8, Count(Distinct(SKU#))), SKU#, Warehouse)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) &lt;STRONG&gt;If(Dimensionality() = 0, Sum(Aggr(If((Sum([Qty On Hand])/([360-day Velocity]/52))&amp;gt;=0 and (Sum([Qty On Hand])/([360-day Velocity]/52))&amp;lt;=8,Sum([Units Packed])), SKU#, Warehouse)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) &lt;STRONG&gt;If(Dimensionality() = 0, Sum(Aggr(If((Sum([Qty On Hand])/([360-day Velocity]/52))&amp;gt;=0 and (Sum([Qty On Hand])/([360-day Velocity]/52))&amp;lt;=8, Aggr(Count(LBCD),SKU#)), SKU#, Warehouse)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you determine which warehouse name will show up there? Is it always going to be OB2?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/90316_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes than you can do this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/90317_Capture.PNG" style="height: 407px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 18:07:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-a-dimension/m-p/876360#M469749</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-22T18:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Group by a dimension.</title>
      <link>https://community.qlik.com/t5/QlikView/Group-by-a-dimension/m-p/876361#M469750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its working.&lt;/P&gt;&lt;P&gt;But can i please knw how to enable all warehouse statistics at a time .&lt;/P&gt;&lt;P&gt;Since it is showing only OB2 / one warehouse at a time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 18:18:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Group-by-a-dimension/m-p/876361#M469750</guid>
      <dc:creator>markgraham123</dc:creator>
      <dc:date>2015-06-22T18:18:57Z</dc:date>
    </item>
  </channel>
</rss>

