Currently exploring QuickSight Embedded Analytics and ran into a few issues when displaying a filled map visual with a geo hierarchy.
For context, I have a simple dataset which shows household counts by US state, county, or zip code:
Question 1: In the embedded view only, the map periodically does not display colored areas at the state or county level, but only at the zip level. This happens after some combination of user interactions and setting parameters through the embedding SDK, and the fix is to hard refresh the page. Even the Reset to original dashboard will not restore functionality. Is there anything we might be doing wrong to cause this?
Question 2: We want to give users the option to define their own custom markets, where a market is a collection of zip codes, counties, or states. Currently we have implemented the market management logic in our code and then pass over to QuickSight through setParameters with connected filters and controls defined in the dashboard. This works for us because we want to allow users to define markets once and then re-use them for various dashboards. We have a couple issues still:
- We would like the map to automatically drill down to the geo level appropriate to the market, maybe using some embedding SDK functionality. For example, a user selecting a zip-based market (in a dropdown outside the embedding) should immediately drill map visuals to the zip level. Currently we are defaulting the dashboard to the top (state) level of the hierarchy, which can cause a confusing experience for users who expect to immediately see data at the granularity relevant to their selected market. Is this possible to fix? The hack we imagined was having 3 identical dashboards (one per hierarchy level) and swapping them if the market type changes, which is less than ideal.
- Is there a way from the embedding SDK to trigger a zoom to data on the map? When switching from a Michigan market to a DC market, for example, the map stays focused on Michigan and doesn’t automatically fit the view to the updated data.
Question 3: Finally, a question unrelated to any of the above. Is there any QuickSight API to simply get the number of registered users? We are thinking to register external users at the Reader level, and want an efficient way to query just the total number for the purpose of enforcing a maximum user count as a cost-safety measure. I know we can maintain this data on our end (we’re registering the users, we certainly should know how many there are), but would be nice to get directly from the source as we’re not immune to bugs. Currently there is a list-user api that allows this, but it requires paginating through all the users which could be very inefficient at scale, especially if implemented as a check at each time a new user is added.