<?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 straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/straight-table/m-p/1589629#M738459</link>
    <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;I'm working on a straight table and I really can't find a solution for my issue.&lt;/P&gt;&lt;P&gt;My data source looks like this:&lt;/P&gt;&lt;P&gt;Shop_A&lt;/P&gt;&lt;P&gt;Shop_Z&lt;/P&gt;&lt;P&gt;Quantity_shipped&lt;/P&gt;&lt;P&gt;eg&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Shop_A&lt;/TD&gt;&lt;TD&gt;Shop_B&lt;/TD&gt;&lt;TD&gt;Quantity_shipped&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Milan&lt;/TD&gt;&lt;TD&gt;Rome&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Milan&lt;/TD&gt;&lt;TD&gt;Paris&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Milan&lt;/TD&gt;&lt;TD&gt;Prague&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Milan&lt;/TD&gt;&lt;TD&gt;Bratislava&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Rome&lt;/TD&gt;&lt;TD&gt;Milan&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Paris&lt;/TD&gt;&lt;TD&gt;Milan&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Prague&lt;/TD&gt;&lt;TD&gt;Milan&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Bratislava&lt;/TD&gt;&lt;TD&gt;Milan&lt;/TD&gt;&lt;TD&gt;18&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I would like to achieve is a table where for each shop combination A-B I see the quantity IN and the quantity OUT:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Shop_A&lt;/TD&gt;&lt;TD&gt;Shop_B&lt;/TD&gt;&lt;TD&gt;Quantity_shipped_IN&lt;/TD&gt;&lt;TD&gt;Quantity_shipped_OUT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Milan&lt;/TD&gt;&lt;TD&gt;Rome&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Milan&lt;/TD&gt;&lt;TD&gt;Paris&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Milan&lt;/TD&gt;&lt;TD&gt;Prague&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Milan&lt;/TD&gt;&lt;TD&gt;Bratislava&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;18&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>marikabi</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>straight table</title>
      <link>https://community.qlik.com/t5/QlikView/straight-table/m-p/1589629#M738459</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;I'm working on a straight table and I really can't find a solution for my issue.&lt;/P&gt;&lt;P&gt;My data source looks like this:&lt;/P&gt;&lt;P&gt;Shop_A&lt;/P&gt;&lt;P&gt;Shop_Z&lt;/P&gt;&lt;P&gt;Quantity_shipped&lt;/P&gt;&lt;P&gt;eg&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Shop_A&lt;/TD&gt;&lt;TD&gt;Shop_B&lt;/TD&gt;&lt;TD&gt;Quantity_shipped&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Milan&lt;/TD&gt;&lt;TD&gt;Rome&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Milan&lt;/TD&gt;&lt;TD&gt;Paris&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Milan&lt;/TD&gt;&lt;TD&gt;Prague&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Milan&lt;/TD&gt;&lt;TD&gt;Bratislava&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Rome&lt;/TD&gt;&lt;TD&gt;Milan&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Paris&lt;/TD&gt;&lt;TD&gt;Milan&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Prague&lt;/TD&gt;&lt;TD&gt;Milan&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Bratislava&lt;/TD&gt;&lt;TD&gt;Milan&lt;/TD&gt;&lt;TD&gt;18&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I would like to achieve is a table where for each shop combination A-B I see the quantity IN and the quantity OUT:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Shop_A&lt;/TD&gt;&lt;TD&gt;Shop_B&lt;/TD&gt;&lt;TD&gt;Quantity_shipped_IN&lt;/TD&gt;&lt;TD&gt;Quantity_shipped_OUT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Milan&lt;/TD&gt;&lt;TD&gt;Rome&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Milan&lt;/TD&gt;&lt;TD&gt;Paris&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Milan&lt;/TD&gt;&lt;TD&gt;Prague&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Milan&lt;/TD&gt;&lt;TD&gt;Bratislava&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;18&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/straight-table/m-p/1589629#M738459</guid>
      <dc:creator>marikabi</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: straight table</title>
      <link>https://community.qlik.com/t5/QlikView/straight-table/m-p/1589662#M738460</link>
      <description>&lt;P&gt;May be try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table:
LOAD *,
	 RangeMaxString(Shop_A, Shop_B) as Shop_A_New,
	 RangeMinString(Shop_A, Shop_B) as Shop_B_New;
LOAD * INLINE [
    Shop_A, Shop_B, Quantity_shipped
    Milan, Rome, 10
    Milan, Paris, 50
    Milan, Prague, 8
    Milan, Bratislava, 20
    Rome, Milan, 5
    Paris, Milan, 15
    Prague, Milan, 10
    Bratislava, Milan, 18
];&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and then a chart with these&lt;/P&gt;&lt;P&gt;Dimension&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Shop_A_New
Shop_B_New&lt;/LI-CODE&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;=Sum(If(Shop_A = Shop_A_New, Quantity_shipped))
=Sum(If(Shop_A &amp;lt;&amp;gt; Shop_A_New, Quantity_shipped))&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 436px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/13418iA4F7D3F122DF667E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 15:44:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/straight-table/m-p/1589662#M738460</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-07T15:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: straight table</title>
      <link>https://community.qlik.com/t5/QlikView/straight-table/m-p/1589680#M738461</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;This way will give you exactly expected output. But there is one condition: repeated values in field "Shop_A" (such as Milan) will be marked as target values and will be shown in the result table.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="in_out_shipping_pic1.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/13423iC684352533095250/image-size/large?v=v2&amp;amp;px=999" role="button" title="in_out_shipping_pic1.png" alt="in_out_shipping_pic1.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2019 16:18:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/straight-table/m-p/1589680#M738461</guid>
      <dc:creator>Sergey_Shuklin</dc:creator>
      <dc:date>2019-06-07T16:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: straight table</title>
      <link>https://community.qlik.com/t5/QlikView/straight-table/m-p/1589871#M738462</link>
      <description>&lt;P&gt;Dear Sunny,&lt;/P&gt;&lt;P&gt;thanks for your help!&lt;/P&gt;&lt;P&gt;I created the dimensions directly in the chart and it seems working quite well.&lt;/P&gt;&lt;P&gt;The only issue I have is that Shop_A and Shop_B are identified by codes, and translated thanks to a mapping table (the format for A and B is different) - for the values of Shop_A and Shop_B not yet included in the mapping table, I loose the amounts in the chart even if selected to include zero values and missing amounts.&lt;/P&gt;&lt;P&gt;Any idea how to solve this?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 07:51:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/straight-table/m-p/1589871#M738462</guid>
      <dc:creator>marikabi</dc:creator>
      <dc:date>2019-06-10T07:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: straight table</title>
      <link>https://community.qlik.com/t5/QlikView/straight-table/m-p/1589937#M738463</link>
      <description>&lt;P&gt;Would you be able to share a sample of the issue you have just mentioned? Might be easy to see and play around if we have a sample to see what you have implemented&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 10:54:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/straight-table/m-p/1589937#M738463</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-10T10:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: straight table</title>
      <link>https://community.qlik.com/t5/QlikView/straight-table/m-p/1589955#M738464</link>
      <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;as you can imagine I cannot upload real data and to fake them it would take hours.&lt;/P&gt;&lt;P&gt;Just to make an example&lt;/P&gt;&lt;P&gt;Shop_A Milan is identified by codes&amp;nbsp;Shop_A_code: 123 or 132 or 567 or 945&lt;/P&gt;&lt;P&gt;Shop_B_Milan is identified by codes Shop_B_code:&amp;nbsp; 0778 or 0698 or 0736 or 04882&lt;/P&gt;&lt;P&gt;-&amp;gt; there is no correlation between A and B codes even for the same shop&lt;/P&gt;&lt;P&gt;Also, it can happen that the shipment is made from Milan to Milan&lt;/P&gt;&lt;P&gt;Now, to translate Shop_A_code and Shop_B_code&amp;nbsp;(which&amp;nbsp;are in my data source) to shops, I have an excel file With all codes and associated shops.&lt;/P&gt;&lt;P&gt;I'm filling in this table manually every time I discover a new shop (unfortunately this is documented in word docs, we don't have this info in any database), and for the combinations where Shop_A is not filled in neither Shop_B is, Qlik return 0 IN and 0 OUT&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 11:43:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/straight-table/m-p/1589955#M738464</guid>
      <dc:creator>marikabi</dc:creator>
      <dc:date>2019-06-10T11:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: straight table</title>
      <link>https://community.qlik.com/t5/QlikView/straight-table/m-p/1589958#M738465</link>
      <description>&lt;P&gt;"&lt;SPAN&gt;for the combinations where Shop_A is not filled in neither Shop_B is, Qlik return 0 IN and 0 OUT"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So, what do you expect to see here, if not 0?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, from your post it seems that you have the mapping all sorted out, right? or is that what you think is causing issues?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 11:48:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/straight-table/m-p/1589958#M738465</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-10T11:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: straight table</title>
      <link>https://community.qlik.com/t5/QlikView/straight-table/m-p/1589971#M738466</link>
      <description>&lt;P&gt;unfortunately, I don't have all the shops mapped for all the codes - so I have some quantity shipped for missing shops, and I would expect to have&lt;/P&gt;&lt;P&gt;Shop_A : -&lt;/P&gt;&lt;P&gt;Shop_B: -&lt;/P&gt;&lt;P&gt;quantity in : x amount&lt;/P&gt;&lt;P&gt;quantity out : y amount&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 12:03:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/straight-table/m-p/1589971#M738466</guid>
      <dc:creator>marikabi</dc:creator>
      <dc:date>2019-06-10T12:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: straight table</title>
      <link>https://community.qlik.com/t5/QlikView/straight-table/m-p/1589978#M738467</link>
      <description>&lt;P&gt;Oh so, you are looking for a Null dimension with in and out... Did you follow the approach that I provided you or did you use another method to display in and out?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 12:12:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/straight-table/m-p/1589978#M738467</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-10T12:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: straight table</title>
      <link>https://community.qlik.com/t5/QlikView/straight-table/m-p/1590011#M738468</link>
      <description>I used your approach but defining Shop_A_New and Shop_B_New a dimension in the chart and not in the loading script</description>
      <pubDate>Mon, 10 Jun 2019 12:54:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/straight-table/m-p/1590011#M738468</guid>
      <dc:creator>marikabi</dc:creator>
      <dc:date>2019-06-10T12:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: straight table</title>
      <link>https://community.qlik.com/t5/QlikView/straight-table/m-p/1590012#M738469</link>
      <description>&lt;P&gt;Oh okay, now it makes sense... can you try doing this in the script?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 12:59:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/straight-table/m-p/1590012#M738469</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-06-10T12:59:44Z</dc:date>
    </item>
  </channel>
</rss>

