You can import any KML into Qlik Sense; just read it as you would any normal flat file.
KMLs are easily found online. I downloaded one from:
When you read it, you get the following code in the Script Editor:
(kml, Table is [US States]);
In this particular KML, the states are named:
... and so on.
Now you have to associate the [us_states.Name] field with the state field in you data. I usually do this by building a translation table in Excel, that matches both names.
This table would look like:
By adding this translation table to your app, you now have a 1:1 relationship between your states and the corresponding KML row.
This will give you a working map of the U.S. that you can color as you wish.
Hope this helps!
Thank you! That was very insightful and I have a direction on how to proceed. However, I'm not sure how you would create a translator table as it is a KML file, so I'm not sure how I can write in the associated state name. Any help on building that translation table would be wonderful, thank you very much again!
To create a translator table:
1. Read the KML into an app.
2. Enter Edit Mode, Create a Filter pane for the KLM State Name field ([us_states.Name] in my example above), and exit Edit Mode.
3. Right-click the filter pane to Export Data
4. Open the exported data in Excel
5. Repeat steps 1-4 for your own State Name Field
6. Copy both exported data columns into the same Excel sheet, and make sure the names match.
7. Save the Excel file.
8. Add this as a new table into your app.
I think that's it! Let us know if it works.