<?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 Days Of Sales Report Help Needed in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Days-Of-Sales-Report-Help-Needed/m-p/158716#M33650</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys&lt;/P&gt;&lt;P&gt;I have developed a days of sales report using SAP Business One data. But I have trouble with one major thing. First off all, let me explain&lt;/P&gt;&lt;P&gt;how my calc works.&lt;/P&gt;&lt;P&gt;I took ItemCode,WhsCode,Quantity,DocDate(where DocDate &amp;gt; Today() -182) from my Invoice table (INV1)&lt;/P&gt;&lt;P&gt;I only took the quantites sold for the last 182 days.&lt;/P&gt;&lt;P&gt;I concatenated it with ItemCode,WhsCode,OnHand from my Warehouse Table (OITW)&lt;/P&gt;&lt;P&gt;I now have on table called "INV+OITW".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Days Of Sales=&lt;/P&gt;&lt;P&gt;&lt;B&gt;sum&lt;/B&gt;(&lt;B&gt;OnHand&lt;/B&gt;)/(&lt;B&gt;sum&lt;/B&gt;(&lt;B&gt;Quantity&lt;/B&gt;)/130) (130=No Of Working Days)&lt;/P&gt;&lt;P&gt;This then gives my the number of days of sales of stock I have in my warehouses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that one of my warehouses (National Warehouse) does not sell stock, so obviously my DOS calc is not accurate for that Warehouse.&lt;/P&gt;&lt;P&gt;I need to take the sales quantites of all the warehouses together and use it in the calc for this National warehouse.&lt;/P&gt;&lt;P&gt;This National Warehouse calc will look like this =Onhand(only this warehouse)/Quantity(qty of all warehouses)&lt;/P&gt;&lt;P&gt;All the other warehouses will use their own Sales qty's and Onhand qty's except for this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope someone will be able to help me.&lt;/P&gt;&lt;P&gt;Attached is a table viewer incase you need it.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 May 2010 12:02:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-05-20T12:02:01Z</dc:date>
    <item>
      <title>Days Of Sales Report Help Needed</title>
      <link>https://community.qlik.com/t5/QlikView/Days-Of-Sales-Report-Help-Needed/m-p/158716#M33650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys&lt;/P&gt;&lt;P&gt;I have developed a days of sales report using SAP Business One data. But I have trouble with one major thing. First off all, let me explain&lt;/P&gt;&lt;P&gt;how my calc works.&lt;/P&gt;&lt;P&gt;I took ItemCode,WhsCode,Quantity,DocDate(where DocDate &amp;gt; Today() -182) from my Invoice table (INV1)&lt;/P&gt;&lt;P&gt;I only took the quantites sold for the last 182 days.&lt;/P&gt;&lt;P&gt;I concatenated it with ItemCode,WhsCode,OnHand from my Warehouse Table (OITW)&lt;/P&gt;&lt;P&gt;I now have on table called "INV+OITW".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Days Of Sales=&lt;/P&gt;&lt;P&gt;&lt;B&gt;sum&lt;/B&gt;(&lt;B&gt;OnHand&lt;/B&gt;)/(&lt;B&gt;sum&lt;/B&gt;(&lt;B&gt;Quantity&lt;/B&gt;)/130) (130=No Of Working Days)&lt;/P&gt;&lt;P&gt;This then gives my the number of days of sales of stock I have in my warehouses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that one of my warehouses (National Warehouse) does not sell stock, so obviously my DOS calc is not accurate for that Warehouse.&lt;/P&gt;&lt;P&gt;I need to take the sales quantites of all the warehouses together and use it in the calc for this National warehouse.&lt;/P&gt;&lt;P&gt;This National Warehouse calc will look like this =Onhand(only this warehouse)/Quantity(qty of all warehouses)&lt;/P&gt;&lt;P&gt;All the other warehouses will use their own Sales qty's and Onhand qty's except for this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope someone will be able to help me.&lt;/P&gt;&lt;P&gt;Attached is a table viewer incase you need it.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 12:02:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Days-Of-Sales-Report-Help-Needed/m-p/158716#M33650</guid>
      <dc:creator />
      <dc:date>2010-05-20T12:02:01Z</dc:date>
    </item>
  </channel>
</rss>

