cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Dynamically Change a Custom Map in Shape Maps

I want to be able to change the Shape Map custom map that is displayed based on the consumer ID. Is it possible to dynamically change a Shape Map custom visual?

 

For example:

 

Presuming I have built my own custom topoJSON files for both US and Europe (not using maps built into Shape Maps):

I have customers in the US, and when they log in I need to show them a shape map of just the United States with correlated graphs (not exposing European information). I also have European customers and on their log in I only want to show them a map of Europe with the same correlated graphs (without exposing US information). I cannot manually upload the custom visual each time, and need to automate it on Power BI service. I cannot have the United States and European maps stored on the same topoJSON file due to privacy issues-- they must be separate. I also do not want to make separate reports for each consumer.

 

Could I maybe point the Shape Map to a URL with topoJSON data? or insert a new topoJSON into the Shape Map upon login each time?

 

Thanks

2 REPLIES 2
Community Support Team
Community Support Team

Re: Dynamically Change a Custom Map in Shape Maps

Hi @Anonymous 

You could configuire dynamical RLS for your dataset:

Create a user table in Power BI, which has columns like: user login account, user region,,ect.

Then create a relationship between user table and your main data table based on the location fields on both tables.

Row-level security (RLS) with Power BI

Dynamic Row Level Security with Power BI Made Simple

Dynamic Row Level Security 

 

Best Regards
Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Re: Dynamically Change a Custom Map in Shape Maps

Thanks for your response Maggie.

 

I know that RLS can limit my dataset upon login and potentially be used to hide different areas of the map, but if I have data stored in the map itself, I want to be able to upload a different custom visual to ShapeMap based on UserID. 

 

Do you have anything that could help with that potentially? Maybe I misunderstood your response . . .

Helpful resources

Announcements
Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Power BI Helps Homeless and Trouble Youth

Power BI Helps Homeless and Trouble Youth

We spoke with Power BI Super User, Greg Deckler, about his charity work

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Users Online
Currently online: 185 members 1,764 guests
Please welcome our newest community members: