<?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: Indirect Set Analysis right tool for my task? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Indirect-Set-Analysis-right-tool-for-my-task/m-p/420552#M156537</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot for your answer.&lt;/P&gt;&lt;P&gt;I compiled a quick and dirty sample to illustrate what I mean. I'm not sure if you can open it, as of now I'm using a personal edition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="loading active_link" href="http://www.file-upload.net/download-4800592/BStaehrSample.zip.html" title="http://www.file-upload.net/download-4800592/BStaehrSample.zip.html"&gt;http://www.file-upload.net/download-4800592/BStaehrSample.zip.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've already thought about a solution similar to yours as an ultima ratio using a view in SQL Server. Though as I understand it, I would be creating a data island by doing so?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll take a look at it!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Sep 2012 10:08:30 GMT</pubDate>
    <dc:creator>benjamins</dc:creator>
    <dc:date>2012-09-19T10:08:30Z</dc:date>
    <item>
      <title>Indirect Set Analysis right tool for my task?</title>
      <link>https://community.qlik.com/t5/QlikView/Indirect-Set-Analysis-right-tool-for-my-task/m-p/420550#M156535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;being quite new to Qlikview I have a problem which I'm currently trying to solve via indirect set analysis.&lt;/P&gt;&lt;P&gt;I'm not sure if this is the right tool to do so however.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a table which looks (simplified) like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ProductId (number)&lt;/P&gt;&lt;P&gt;DepartureLocationName (string)&lt;/P&gt;&lt;P&gt;DepartureDelay (number)&lt;/P&gt;&lt;P&gt;ArrivalLocationName (string)&lt;/P&gt;&lt;P&gt;ArrivalDelay (number)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the data displayed shows for a given product where it departed and with how much delay, as well as where it arrived and again with how much delay.&lt;/P&gt;&lt;P&gt;DepartureLocation and ArrivalLocation originate from the same master data Location table, which is also loaded in Qlikview and contains a value &lt;/P&gt;&lt;P&gt;LocationName (string).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I'm now trying to do is the following:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum up delays per location&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; (based on other user choices, such as month, customer, etc.).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd have thought my function should have looked something like this:&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;ArrivalLocationName = P({$}LocationName)&amp;gt;} ArrivalDelay)&lt;/P&gt;&lt;P&gt;+ Sum({$&amp;lt;DepartureLocationName = P({$}LocationName)&amp;gt;} DepartureDelay)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this does not seem to work out and produces strange results.&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2012 08:15:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indirect-Set-Analysis-right-tool-for-my-task/m-p/420550#M156535</guid>
      <dc:creator>benjamins</dc:creator>
      <dc:date>2012-09-19T08:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Indirect Set Analysis right tool for my task?</title>
      <link>https://community.qlik.com/t5/QlikView/Indirect-Set-Analysis-right-tool-for-my-task/m-p/420551#M156536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post a small sample file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One idea might be to convert your table to a structure like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ProductID, LocationName, Delay, ArrivalOrDeparture&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can just link your LocationName to your other table and you can just sum up Delays.&lt;/P&gt;&lt;P&gt;To convert your table, you can try making use of CROSSTABLE Load prefix (especially if you have a lot more fields per Arrival / Departure), or you can do two concatenated loads of your table, one time only loading the Departure fields (renamed), one time only the Arrival fields (plus ProductID and ArrivalOrDeparture field).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ProductID, ArrivalLocationName as LocationName, ArrivalDelay as Delay, 'Arrival' as ArrivalOrDeparture&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;from Table;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ProductID, DepartureLocationName as LocationName, DepartureDelay as Delay, 'Departure' as ArrivalOrDeparture&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;from Table;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2012 09:08:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indirect-Set-Analysis-right-tool-for-my-task/m-p/420551#M156536</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-09-19T09:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Indirect Set Analysis right tool for my task?</title>
      <link>https://community.qlik.com/t5/QlikView/Indirect-Set-Analysis-right-tool-for-my-task/m-p/420552#M156537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot for your answer.&lt;/P&gt;&lt;P&gt;I compiled a quick and dirty sample to illustrate what I mean. I'm not sure if you can open it, as of now I'm using a personal edition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="loading active_link" href="http://www.file-upload.net/download-4800592/BStaehrSample.zip.html" title="http://www.file-upload.net/download-4800592/BStaehrSample.zip.html"&gt;http://www.file-upload.net/download-4800592/BStaehrSample.zip.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've already thought about a solution similar to yours as an ultima ratio using a view in SQL Server. Though as I understand it, I would be creating a data island by doing so?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll take a look at it!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2012 10:08:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indirect-Set-Analysis-right-tool-for-my-task/m-p/420552#M156537</guid>
      <dc:creator>benjamins</dc:creator>
      <dc:date>2012-09-19T10:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Indirect Set Analysis right tool for my task?</title>
      <link>https://community.qlik.com/t5/QlikView/Indirect-Set-Analysis-right-tool-for-my-task/m-p/420553#M156538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At the moment you are using a data island (for your location). You are getting totals, because your main table fields are not linked to your location table. You can also use a conditional to restrict results to the current dimension value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Sum(if(ArrivalLocationName = LocationName, ArrivalDelay))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;+ Sum(if(DepartureLocationName = LocationName, DepartureDelay))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But performance will be poor for large tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll take a look into your input data now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: here is a sample of my suggested solution, no data island and a simple sum(Delay) over dimension LocationName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOCATION:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD LocationId,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LocationName&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;QV_LocationsSample.xlsx&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(ooxml, embedded labels);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CUSTOMER:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD ProductId, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;QV_IndirectSetSample.xlsx&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(ooxml, embedded labels);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DELAYS:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD ProductId, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DepartureLocationName as LocationName, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DepartureDelay as Delay,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Departure' as Type &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;QV_IndirectSetSample.xlsx&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(ooxml, embedded labels);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD ProductId, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ArrivalLocationName as LocationName, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ArrivalDelay as Delay,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Arrival' as Type &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;QV_IndirectSetSample.xlsx&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(ooxml, embedded labels);&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2012 10:16:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indirect-Set-Analysis-right-tool-for-my-task/m-p/420553#M156538</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-09-19T10:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Indirect Set Analysis right tool for my task?</title>
      <link>https://community.qlik.com/t5/QlikView/Indirect-Set-Analysis-right-tool-for-my-task/m-p/420554#M156539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For now I think I'll go with the conditional option, as I need to keep up the integrity of my original table for other qv objects and keep an eye on performance as the data warehouse grows larger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though if you got any suggestions how that can be achieved while upholding performance I'd be grateful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2012 13:11:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Indirect-Set-Analysis-right-tool-for-my-task/m-p/420554#M156539</guid>
      <dc:creator>benjamins</dc:creator>
      <dc:date>2012-09-19T13:11:58Z</dc:date>
    </item>
  </channel>
</rss>

