Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
vanderbright
New Member

New to Power BI Embedded - Change parameter acording to the session

Hi! I developed a dashboard that I plan to embed in my portal. I have a question: since the dashboard is designed to display data for a specific city, I created a parameter in Power Query to store the current city's ID (as it relates to the database).

 

I want to dynamically update this parameter during a session, so that depending on the page where the dashboard is embedded, it displays data for a different city. Is this possible with Power BI Embedded? If yes, how can I achieve it?

 

I’d appreciate any help, as I’m new to Power BI Embedded.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @vanderbright 

You may consider the following two solutions:

1.Firstly, you can use dynamic M query parameters, which allow report viewers to set the values of M query parameters through filters or slicers. This approach can enhance query performance and enable users to select different city IDs within the report.

 

 For further details, please refer to:

Solved: Passing Parameters Dynamically in Power BI Embedde... - Microsoft Fabric Community
Parameters - Power Query | Microsoft Learn
 

2.Secondly, if your data model supports Row-Level Security (RLS), you can set different access permissions for various users. This way, when users view the report, they will only see data relevant to them. This method is suitable for scenarios where data needs to be dynamically adjusted based on user identity.

 

For further details, please refer to:

Using standard cloud based row-level security with embedded content in Power BI embedded analytics -...

 

Best Regards,

Leroy Lu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi, @vanderbright 

You may consider the following two solutions:

1.Firstly, you can use dynamic M query parameters, which allow report viewers to set the values of M query parameters through filters or slicers. This approach can enhance query performance and enable users to select different city IDs within the report.

 

 For further details, please refer to:

Solved: Passing Parameters Dynamically in Power BI Embedde... - Microsoft Fabric Community
Parameters - Power Query | Microsoft Learn
 

2.Secondly, if your data model supports Row-Level Security (RLS), you can set different access permissions for various users. This way, when users view the report, they will only see data relevant to them. This method is suitable for scenarios where data needs to be dynamically adjusted based on user identity.

 

For further details, please refer to:

Using standard cloud based row-level security with embedded content in Power BI embedded analytics -...

 

Best Regards,

Leroy Lu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.