<?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: straight table calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/straight-table-calculation/m-p/1735019#M722158</link>
    <description>&lt;P&gt;What is the calculation for&amp;nbsp;&lt;SPAN&gt;WOSTAT?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Aug 2020 21:54:41 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2020-08-11T21:54:41Z</dc:date>
    <item>
      <title>straight table calculation</title>
      <link>https://community.qlik.com/t5/QlikView/straight-table-calculation/m-p/1735005#M722156</link>
      <description>&lt;P&gt;I'm really not even sure what to ask so I apologize in advance.&amp;nbsp; &amp;nbsp; I have a Qlikview app, it's very big and gets data from multiple sources.&amp;nbsp; The app takes sales data and feeds into a straight table.&amp;nbsp; It looks at different criteria and determines a status through a calculation called WOSTAT.&amp;nbsp; &amp;nbsp; It looks like this so far, each order has multiple components and multiple suppliers:&lt;/P&gt;&lt;TABLE width="611"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="107"&gt;Order Number&lt;/TD&gt;&lt;TD width="112"&gt;Part Number&lt;/TD&gt;&lt;TD width="122"&gt;Component Number&lt;/TD&gt;&lt;TD width="137"&gt;Component Supplier&lt;/TD&gt;&lt;TD width="133"&gt;WOSTAT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;19361373SI1.002&lt;/TD&gt;&lt;TD&gt;Part A&lt;/TD&gt;&lt;TD&gt;Part A-1&lt;/TD&gt;&lt;TD&gt;9999&lt;/TD&gt;&lt;TD&gt;Available to Process&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;19361373SI1.002&lt;/TD&gt;&lt;TD&gt;Part A&lt;/TD&gt;&lt;TD&gt;Part A-2&lt;/TD&gt;&lt;TD&gt;8888&lt;/TD&gt;&lt;TD&gt;Supply / Availability&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;19361373SI1.003&lt;/TD&gt;&lt;TD&gt;Part B&lt;/TD&gt;&lt;TD&gt;Part B-1&lt;/TD&gt;&lt;TD&gt;7777&lt;/TD&gt;&lt;TD&gt;Supply / Availability&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;19361373SI1.003&lt;/TD&gt;&lt;TD&gt;Part B&lt;/TD&gt;&lt;TD&gt;Part B-2&lt;/TD&gt;&lt;TD&gt;6666&lt;/TD&gt;&lt;TD&gt;Supply / Availability&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;19361373SI5.004&lt;/TD&gt;&lt;TD&gt;Part C&lt;/TD&gt;&lt;TD&gt;Part C-1&lt;/TD&gt;&lt;TD&gt;5555&lt;/TD&gt;&lt;TD&gt;Supply / Availability&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;19361373SI5.004&lt;/TD&gt;&lt;TD&gt;Part C&lt;/TD&gt;&lt;TD&gt;Part C-2&lt;/TD&gt;&lt;TD&gt;4444&lt;/TD&gt;&lt;TD&gt;Available to Process&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;19361373SI7.003&lt;/TD&gt;&lt;TD&gt;Part D&lt;/TD&gt;&lt;TD&gt;Part D-1&lt;/TD&gt;&lt;TD&gt;3333&lt;/TD&gt;&lt;TD&gt;Available to Process&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;19361373SI7.003&lt;/TD&gt;&lt;TD&gt;Part D&lt;/TD&gt;&lt;TD&gt;Part D-2&lt;/TD&gt;&lt;TD&gt;2222&lt;/TD&gt;&lt;TD&gt;Supply / Availability&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;19361373SI15&lt;/TD&gt;&lt;TD&gt;Part E&lt;/TD&gt;&lt;TD&gt;Part E-1&lt;/TD&gt;&lt;TD&gt;1111&lt;/TD&gt;&lt;TD&gt;Available to Process&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;19361373SI15&lt;/TD&gt;&lt;TD&gt;Part E&lt;/TD&gt;&lt;TD&gt;Part E-2&lt;/TD&gt;&lt;TD&gt;1212&lt;/TD&gt;&lt;TD&gt;Supply / Availability&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to be able to mark each order line with the supplier that is causing the line to be late, like this:&lt;/P&gt;&lt;TABLE width="675"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="107"&gt;Order Number&lt;/TD&gt;&lt;TD width="112"&gt;Part Number&lt;/TD&gt;&lt;TD width="122"&gt;Component Number&lt;/TD&gt;&lt;TD width="137"&gt;Component Supplier&lt;/TD&gt;&lt;TD width="133"&gt;WOSTAT&lt;/TD&gt;&lt;TD width="64"&gt;Supplier Causer&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;19361373SI1.002&lt;/TD&gt;&lt;TD&gt;Part A&lt;/TD&gt;&lt;TD&gt;Part A-1&lt;/TD&gt;&lt;TD&gt;9999&lt;/TD&gt;&lt;TD&gt;Available to Process&lt;/TD&gt;&lt;TD&gt;8888&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;19361373SI1.002&lt;/TD&gt;&lt;TD&gt;Part A&lt;/TD&gt;&lt;TD&gt;Part A-2&lt;/TD&gt;&lt;TD&gt;8888&lt;/TD&gt;&lt;TD&gt;Supply / Availability&lt;/TD&gt;&lt;TD&gt;8888&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;19361373SI1.003&lt;/TD&gt;&lt;TD&gt;Part B&lt;/TD&gt;&lt;TD&gt;Part B-1&lt;/TD&gt;&lt;TD&gt;7777&lt;/TD&gt;&lt;TD&gt;Supply / Availability&lt;/TD&gt;&lt;TD&gt;Multiple&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;19361373SI1.003&lt;/TD&gt;&lt;TD&gt;Part B&lt;/TD&gt;&lt;TD&gt;Part B-2&lt;/TD&gt;&lt;TD&gt;6666&lt;/TD&gt;&lt;TD&gt;Supply / Availability&lt;/TD&gt;&lt;TD&gt;Multiple&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;19361373SI5.004&lt;/TD&gt;&lt;TD&gt;Part C&lt;/TD&gt;&lt;TD&gt;Part C-1&lt;/TD&gt;&lt;TD&gt;5555&lt;/TD&gt;&lt;TD&gt;Supply / Availability&lt;/TD&gt;&lt;TD&gt;5555&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;19361373SI5.004&lt;/TD&gt;&lt;TD&gt;Part C&lt;/TD&gt;&lt;TD&gt;Part C-2&lt;/TD&gt;&lt;TD&gt;4444&lt;/TD&gt;&lt;TD&gt;Available to Process&lt;/TD&gt;&lt;TD&gt;5555&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;19361373SI7.003&lt;/TD&gt;&lt;TD&gt;Part D&lt;/TD&gt;&lt;TD&gt;Part D-1&lt;/TD&gt;&lt;TD&gt;3333&lt;/TD&gt;&lt;TD&gt;Available to Process&lt;/TD&gt;&lt;TD&gt;2222&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;19361373SI7.003&lt;/TD&gt;&lt;TD&gt;Part D&lt;/TD&gt;&lt;TD&gt;Part D-2&lt;/TD&gt;&lt;TD&gt;2222&lt;/TD&gt;&lt;TD&gt;Supply / Availability&lt;/TD&gt;&lt;TD&gt;2222&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;19361373SI15&lt;/TD&gt;&lt;TD&gt;Part E&lt;/TD&gt;&lt;TD&gt;Part E-1&lt;/TD&gt;&lt;TD&gt;1111&lt;/TD&gt;&lt;TD&gt;Available to Process&lt;/TD&gt;&lt;TD&gt;1212&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;19361373SI15&lt;/TD&gt;&lt;TD&gt;Part E&lt;/TD&gt;&lt;TD&gt;Part E-2&lt;/TD&gt;&lt;TD&gt;1212&lt;/TD&gt;&lt;TD&gt;Supply / Availability&lt;/TD&gt;&lt;TD&gt;1212&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is this even possible in Qlikview?&amp;nbsp; I've tried doing an if statement like "if WOSTAT = 'Supply / Availability', Component Supplier" but when there's more than 1 supplier it returns (-).&amp;nbsp; Any idea?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:09:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/straight-table-calculation/m-p/1735005#M722156</guid>
      <dc:creator>nburton78</dc:creator>
      <dc:date>2024-11-16T00:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: straight table calculation</title>
      <link>https://community.qlik.com/t5/QlikView/straight-table-calculation/m-p/1735011#M722157</link>
      <description>&lt;P&gt;It displays the '-' because there are multiple Component Suppliers and only 1 line displayed.&lt;/P&gt;&lt;P&gt;Try something like:&lt;/P&gt;&lt;P&gt;=If(WOSTAT = 'Supply/Availability',If(Count([Component Supplier]) &amp;gt; 1,'Multiple',[Component Supplier]),'SOMETHING HERE WHEN WOSTAT &amp;lt;&amp;gt; SUPPLY/AVAILABILTY')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 21:12:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/straight-table-calculation/m-p/1735011#M722157</guid>
      <dc:creator>jwjackso</dc:creator>
      <dc:date>2020-08-11T21:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: straight table calculation</title>
      <link>https://community.qlik.com/t5/QlikView/straight-table-calculation/m-p/1735019#M722158</link>
      <description>&lt;P&gt;What is the calculation for&amp;nbsp;&lt;SPAN&gt;WOSTAT?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 21:54:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/straight-table-calculation/m-p/1735019#M722158</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-08-11T21:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: straight table calculation</title>
      <link>https://community.qlik.com/t5/QlikView/straight-table-calculation/m-p/1735031#M722159</link>
      <description>&lt;P&gt;One solution is.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;tab1:
LOAD * INLINE [
    Order Number, Part Number, Component Number, Component Supplier, WOSTAT
    19361373SI1.002, Part A, Part A-1, 9999, Available to Process
    19361373SI1.002, Part A, Part A-2, 8888, Supply / Availability
    19361373SI1.003, Part B, Part B-1, 7777, Supply / Availability
    19361373SI1.003, Part B, Part B-2, 6666, Supply / Availability
    19361373SI5.004, Part C, Part C-1, 5555, Supply / Availability
    19361373SI5.004, Part C, Part C-2, 4444, Available to Process
    19361373SI7.003, Part D, Part D-1, 3333, Available to Process
    19361373SI7.003, Part D, Part D-2, 2222, Supply / Availability
    19361373SI15, Part E, Part E-1, 1111, Available to Process
    19361373SI15, Part E, Part E-2, 1212, Supply / Availability
];

Left Join(tab1)
LOAD [Order Number], [Part Number], 
		If(Count(If([WOSTAT]='Supply / Availability',[Component Supplier]))&amp;gt;1, 
			'Multiple', 
			Concat(If([WOSTAT]='Supply / Availability',[Component Supplier]))
		) As [Supplier Causer]
Resident tab1
Group By [Order Number], [Part Number];&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 11 Aug 2020 23:21:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/straight-table-calculation/m-p/1735031#M722159</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2020-08-11T23:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: straight table calculation</title>
      <link>https://community.qlik.com/t5/QlikView/straight-table-calculation/m-p/1735033#M722160</link>
      <description>&lt;P&gt;Output.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="commQV61.PNG" style="width: 565px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/38856iF84062318DF9E5A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="commQV61.PNG" alt="commQV61.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 23:22:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/straight-table-calculation/m-p/1735033#M722160</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2020-08-11T23:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: straight table calculation</title>
      <link>https://community.qlik.com/t5/QlikView/straight-table-calculation/m-p/1735233#M722161</link>
      <description>&lt;P&gt;Here's a sample of what I'm doing, maybe this will make more sense.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the All data table:&lt;/P&gt;&lt;P&gt;WOSTAT: determines the category (Available to Process, Supply / Available, In Process, Order not Acknowledged) based on criteria&amp;nbsp;&lt;/P&gt;&lt;P&gt;rank: This provides a rank to each WOSTAT.&amp;nbsp; Since there are 2 or more components to each order I need to know which category has the most priority.&amp;nbsp; If one component is Supply / Available, then all Components are moved to that category.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Category:&amp;nbsp; assigns the text name to the max rank&lt;/P&gt;&lt;P&gt;The overall goal is to remove the components and have one line for each ordernumber as shown in the Discrete Data table( at the bottom) and so far everything works, except the supplier causer.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a simplified version, my real version has 8 tables joined in various ways and other calculations in the table&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 12:49:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/straight-table-calculation/m-p/1735233#M722161</guid>
      <dc:creator>nburton78</dc:creator>
      <dc:date>2020-08-12T12:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: straight table calculation</title>
      <link>https://community.qlik.com/t5/QlikView/straight-table-calculation/m-p/1735294#M722162</link>
      <description>&lt;P&gt;The one idea I had was what if I can move the calculations from the chart to the script?&amp;nbsp; Is that possible?&amp;nbsp; not really sure how that would work.&amp;nbsp; especially with multiple tables.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 14:27:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/straight-table-calculation/m-p/1735294#M722162</guid>
      <dc:creator>nburton78</dc:creator>
      <dc:date>2020-08-12T14:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: straight table calculation</title>
      <link>https://community.qlik.com/t5/QlikView/straight-table-calculation/m-p/1735297#M722163</link>
      <description>&lt;P&gt;What could be&amp;nbsp;&lt;SPAN&gt;supplier causer output for each order in Discrete all table?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 14:36:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/straight-table-calculation/m-p/1735297#M722163</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-08-12T14:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: straight table calculation</title>
      <link>https://community.qlik.com/t5/QlikView/straight-table-calculation/m-p/1735299#M722164</link>
      <description>&lt;P&gt;supplier causer would be the supplier where Supply / Availability is the category.&amp;nbsp; so If&amp;nbsp; there's 2 component lines one is&amp;nbsp;Supply / Availability and the other is anything else, I only want to see the supplier that is causing the late.&amp;nbsp; If there is more than one supplier causing a late I want it to say "Multiple".&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 14:44:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/straight-table-calculation/m-p/1735299#M722164</guid>
      <dc:creator>nburton78</dc:creator>
      <dc:date>2020-08-12T14:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: straight table calculation</title>
      <link>https://community.qlik.com/t5/QlikView/straight-table-calculation/m-p/1735699#M722165</link>
      <description>&lt;P&gt;I moved the calculation to the load script and then created the field "supplier causer" off that calculation.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 16:13:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/straight-table-calculation/m-p/1735699#M722165</guid>
      <dc:creator>nburton78</dc:creator>
      <dc:date>2020-08-13T16:13:34Z</dc:date>
    </item>
  </channel>
</rss>

