<?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: Static Location in Map along with Dynamic Locations in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Static-Location-in-Map-along-with-Dynamic-Locations/m-p/905196#M314598</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all I would have considered keeping all locations in one table and rather have an extra field specify the Location Category. Then you will have more flexibility in your selections I think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Furthermore a Distance Table should be calculated. The cartesian product of the different locations. Using a formula to calculate the distances in airline between every location (latitude,longitude). If you already have a distance, cost, time table between every location that could be very helpful for calculating other interesting aspects from you map.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 09 May 2015 10:43:22 GMT</pubDate>
    <dc:creator>petter</dc:creator>
    <dc:date>2015-05-09T10:43:22Z</dc:date>
    <item>
      <title>Static Location in Map along with Dynamic Locations</title>
      <link>https://community.qlik.com/t5/QlikView/Static-Location-in-Map-along-with-Dynamic-Locations/m-p/905194#M314596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to put few locations on my Map in qlikview.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, I have two sources. Let's say, One is my locations for warehouses. And another is the locations for stores.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently both sources are different and I don't have any connections between them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Table Structure is&lt;/P&gt;&lt;P&gt;Warehouses :&lt;/P&gt;&lt;P&gt;Latitude&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Longitude&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Warehouse Name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stores:&lt;/P&gt;&lt;P&gt;Latitude&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Longitude&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Store Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Store Type&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is Warehouses should be Green and Stores should be Red. Which I have already achieved. I've attached my app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the point I'm struggling is when I select Store Type, Warehouses gets disappeared. This is happening since there's no connections. Or, when I'll select certain store type, corresponding latitude and longitude would be selected which will not match to any of the Warehouse and hence they'll disappear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me how to achieve this ? I feel my data modelling is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hardik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 May 2015 07:33:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-Location-in-Map-along-with-Dynamic-Locations/m-p/905194#M314596</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-09T07:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Static Location in Map along with Dynamic Locations</title>
      <link>https://community.qlik.com/t5/QlikView/Static-Location-in-Map-along-with-Dynamic-Locations/m-p/905195#M314597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to have a way of calculating the proximity of all locations in relation to each other. I will have a look at it since I haven't tried to solve this myself previously - one link I found that I will pursue is the Stack Overflow article that&lt;/P&gt;&lt;P&gt;you find if you follow this link:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="http://stackoverflow.com/questions/27928/how-do-i-calculate-distance-between-two-latitude-longitude-points" title="http://stackoverflow.com/questions/27928/how-do-i-calculate-distance-between-two-latitude-longitude-points"&gt;math - How do I calculate distance between two latitude-longitude points? - Stack Overflow&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will get back to you as soon as I have a solution for this in your attach QVW ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 May 2015 09:07:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-Location-in-Map-along-with-Dynamic-Locations/m-p/905195#M314597</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-05-09T09:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Static Location in Map along with Dynamic Locations</title>
      <link>https://community.qlik.com/t5/QlikView/Static-Location-in-Map-along-with-Dynamic-Locations/m-p/905196#M314598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all I would have considered keeping all locations in one table and rather have an extra field specify the Location Category. Then you will have more flexibility in your selections I think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Furthermore a Distance Table should be calculated. The cartesian product of the different locations. Using a formula to calculate the distances in airline between every location (latitude,longitude). If you already have a distance, cost, time table between every location that could be very helpful for calculating other interesting aspects from you map.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 May 2015 10:43:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-Location-in-Map-along-with-Dynamic-Locations/m-p/905196#M314598</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-05-09T10:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Static Location in Map along with Dynamic Locations</title>
      <link>https://community.qlik.com/t5/QlikView/Static-Location-in-Map-along-with-Dynamic-Locations/m-p/905197#M314599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're right that I should keep all the locations in single table. Which I'm already doing. However, when I select any attribute of Stores, warehouse gets disappeared. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, my requirement is in any case, warehouse shouldn't go away on selections of store attribute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hardik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 May 2015 11:06:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-Location-in-Map-along-with-Dynamic-Locations/m-p/905197#M314599</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-09T11:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Static Location in Map along with Dynamic Locations</title>
      <link>https://community.qlik.com/t5/QlikView/Static-Location-in-Map-along-with-Dynamic-Locations/m-p/905198#M314600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I mean the extra tables shouldn't be split off from the main location table. It is probably better with all type of location information in one table - due to the selection logic in QlikView and how associations work - which cause problems for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at my modified QVW which I attached - I also added a distance table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 May 2015 23:03:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-Location-in-Map-along-with-Dynamic-Locations/m-p/905198#M314600</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-05-10T23:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Static Location in Map along with Dynamic Locations</title>
      <link>https://community.qlik.com/t5/QlikView/Static-Location-in-Map-along-with-Dynamic-Locations/m-p/905199#M314601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Petter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for sharing the app. This looks great. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, in my case, on selecting attributes of stores, like store type, warehouses gets disappeared and that's pretty obvious with how qlikview works on associative model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got that work, by calculating distance between them and creating a link table to link keys from Stores and Warehouses for the distance less than 1 mile and that's how even after selecting attributes of stores (i.e. General Store, Production Store etc in my case), nearby warehouses will still be there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll upload my app too if you wanna give your feedback on that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hardik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 04:41:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Static-Location-in-Map-along-with-Dynamic-Locations/m-p/905199#M314601</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-11T04:41:14Z</dc:date>
    </item>
  </channel>
</rss>

