If you have a file with a column 'state' (the state name) ; add the file containing the colum with the data editor (the graphic assistant not the script); and then don't load directly the file, but instead click on PREPARE DATA then load
Once this done, Qlik Sense will automatically create a geoField with the column state that you can use to create maps.
Hope this helps
You will need to download a .kml file that has been created displaying the same states. (Or alternatively create one using software like QGIS)
Load this in you script and link to the state names in your data.
You need to have a KML (or other supported format) file with your states (countries) you are planning to display.
You can just Google it, there are tons of sites that provides this data.
Load it in your script (here is the example for the world map):
world.Name as ISO_Country,
(kml, Table is [World.shp/Features]);
Make sure you are linking your data with this Geo data (my data above is linked via " ISO_Country" field.
Add mapping object and select appropriate field to be used as Dimension (State Name, Country Name, etc).
Add an expression (Count of Sales Persons, for example).
As a result you should see something like:
You can do a default area coloring, using a default colors or color your states/countries based on number of sales persons, for example (like in my example above).
P.S. When applicable, please mark this answer Correct or Helpful.