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
crln-blue
Post Patron
Post Patron

Data Import depends on the user

Hello!

 

I'm fairly new to PowerBI and still learning the ropes.

 

I have a report where (non pro user) my client wants the current data to be displayed. In order to save time on importing data from SQL Server, what I did is get the data from the last 2 months up to the current. I put a SQL statement on the data import process:

crln-blue_0-1600841859600.png

 

Now, my clients wants to suddenly look at the past year's data. Is there an option where importing data can be changed easily? The only solution that I can think of is to load all the data and then, filter the needed data for the display. However, loading all the data will require a lot of time and will make the PBIX file larger. We're not using Pro so we can't do incremental refresh. 

 

Any help is appreciated. Thank you.

2 ACCEPTED SOLUTIONS
vanessafvg
Super User
Super User

can you clarify what you mean about how the imported data can be changed easily? from the sounds of it you need to set up parameters

this video and blog goes through the steps of how to set up parameters to pass to sql

https://channel9.msdn.com/Blogs/MVP-Azure/Pass-parameter-to-SQL-Queries-statement-using-Power-BI

https://blog.crossjoin.co.uk/2016/12/11/passing-parameters-to-sql-queries-with-value-nativequery-in-...

maybe this can help as i think parameters will be what you need to do.




If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




View solution in original post

Anonymous
Not applicable

@crln-blue 

You can create a Parameter that allows you to filter the data before importing to Power Bi desktop. 
Please refer to the steps: https://docs.microsoft.com/en-us/power-query/power-query-query-parameters


Paul Zheng _ Community Support Team
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

2 REPLIES 2
Anonymous
Not applicable

@crln-blue 

You can create a Parameter that allows you to filter the data before importing to Power Bi desktop. 
Please refer to the steps: https://docs.microsoft.com/en-us/power-query/power-query-query-parameters


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

vanessafvg
Super User
Super User

can you clarify what you mean about how the imported data can be changed easily? from the sounds of it you need to set up parameters

this video and blog goes through the steps of how to set up parameters to pass to sql

https://channel9.msdn.com/Blogs/MVP-Azure/Pass-parameter-to-SQL-Queries-statement-using-Power-BI

https://blog.crossjoin.co.uk/2016/12/11/passing-parameters-to-sql-queries-with-value-nativequery-in-...

maybe this can help as i think parameters will be what you need to do.




If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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
Top Kudoed Authors