Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in BI by (17.6k points)

I have two sets of lat/long coordinates on a data source:

lat_orig    long_orig    lat_dest   long_dest    value

-12,2354    -55,2342     -5,3425    -32,3245      2

-11,2342    -44,9878     -14,3459   -54,2342      4

 and would like to show both points on the same map on Tableau, is it possible?

1 Answer

0 votes
by (47.2k points)
  • You need to pivot your data a bit:

LAT  LON TYPE   VALUE

-12  -55 ORIGIN 2

-112 -45 ORIGIN 4

-5   -32 DEST   2

-14  -54 DEST   4

  • Then if you want to draw lines between your places you need to add a path ID:

LAT      LON   TYPE VALUE   PATH

-12.2354 -55.2342   ORIGIN 2 2-2

-5.3425  -32.3245   DEST 2     2-2

-112.342 -44.9878   ORIGIN 4 4-4

-14.3459 -54.2342   DEST 4 4-4

image

  • To get labels you can do a dual-axis and overlay the labels: enter image description here


 

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...