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
ahmadov_10
Helper II
Helper II

dynamic parameter value in sql query source power bi

Hello Experts,

i need to deliver a report based on a dynamic field "Region_id" to the end users. the report contains one table built with a query SQL : query from SQL table concatenate in where with parameter value. (the query above)

 

ahmadov_10_0-1673021364565.png

it works fine now and i can see the difference when i change the parameter value , it's nice to manage high volume of data (30 millions rows in total and 2 millions per region)

 

So the problem : how to do it dynamic in the server : when a user (from region_id = 4) see the report , the report loads data for region_id = 4 and he can see only the data of his region.

I'm open for any solution (my report in import mode , but if necessary i change for direct query mode)

Happy to share with you Super stars : @Greg_Deckler @amitchandak @PhilipTreacy  @ImkeF @AlexisOlson  @ppm1 @Anonymous  

2 REPLIES 2
AlexisOlson
Super User
Super User

If you need access to more than one region without changing the parameter, you can either import all of the regions you'll need or else set it up as a DirectQuery where it queries the source for the region(s) as they are needed.

Hi Alexis : no, due to the large volume, the report cannot be published on the service if the total data is loaded. So, I would like to set up a dynamic loading solution, where each user in the workspace according to his role, consume the data of his region.
I think this is the best solution to solve the volumetrics problem and have a single data source.

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.

Top Solution Authors