Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Google Map - 2 records with same address

Hi all,

This is the situation:

We have a list with for each store a number of postal codes of their customers.

eg:

store1 postalcode1

store1 postalcode2

store1 postalcode3

store2 postalcode4

store2 postalcode5

store3 postalcode6

...

He wants to see this in a google map.

I created a qvw with that google map and it seems to work correct. But if there are 2 stores with the same postal code, the longitude and latitude is correct, but there is no bubble for it.

Can someone explain me why there is no bubble for those 2 records?

See qvw in the attachment. Postcal code (= postnr) is 8700.

Thanks in advantage!

Fien

1 Solution

Accepted Solutions
pgrenier
Partner - Creator III
Partner - Creator III

Hello Fien,

It is the Sum() expression for the latitude and longitude that throws it off, it returns a latitude > 100 and a longitude > 7 (rather than ±50 and ±3.5). If you replace this expression by either Avg() or Max(), you shall see your missing dots.

Regards,

Philippe

View solution in original post

12 Replies
vikasmahajan

As per My Experience this is not possible in one chart you need to create other for the same.

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
suniljain
Master
Master

Its not possible . Reason is that second id will be always overwritten by first one or vice versa. Regards; Sunil

pgrenier
Partner - Creator III
Partner - Creator III

Hello Fien,

It is the Sum() expression for the latitude and longitude that throws it off, it returns a latitude > 100 and a longitude > 7 (rather than ±50 and ±3.5). If you replace this expression by either Avg() or Max(), you shall see your missing dots.

Regards,

Philippe

richard_chilvers
Specialist
Specialist

Hi

Its an interesting problem.

What would you wish to show with the bubble for 2 stores? I notice your expression is MAX(omzet), which I would expect to be fine, but the last parameter (name & position) will have 2 values (shown when you hover over a bubble).

However, I have removed this 4th expression and still not got a result.

regards

Richard

pgrenier
Partner - Creator III
Partner - Creator III

Please find attached the updated QVW file.

Cheers,

Philippe

richard_chilvers
Specialist
Specialist

Hi Philippe

Could you briefly explain your solution?

regards

Richard

Not applicable
Author

Hi Philippe,

Thanks for the solution!

I changed the Sum() by Avg() and it works!

SumToAvg.PNG.png

Kind regards,

Fien

pgrenier
Partner - Creator III
Partner - Creator III

Good morning Richard,

With pleasure!

You see, there are two expressions in the graph that are used to calculate the placement of the dots in the chart. The first one evaluates the latitude, and the second one evaluates the longitude.

Using the Sum() expression on a case where two distinct records should occupy the same space, which is the currently the case that Fien is facing, throws off the chart positionning based on the longitude and latitude values because the source dataset is doubled.

If we resume this to an analogy at it's simpliest level, we could imagine that these two expressions were currently used for positioning:

longitude= Sum(longitude)

latitude = Sum(latitude)

When your granularity level is at the Postal Code (postnr) level, and none of your entries overlap, this works fine.

In this case though, the granularity is at a level below (WinkID), but summarized at the postnr level. So, what we have as a result, is a chart longitude that is evaluated based on the sum of both individual longitudes, with the same effect happening at the latitude level. The dots are therefore out of the chart's range and set somewhere in lalaland.

Hope this helps,

Regards,

Philippe

pgrenier
Partner - Creator III
Partner - Creator III

Excellent

Please don't hesitate to mark the responses that were helpful and correct in order to mark this thread as answered.

Cheers,

Philippe