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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

V-pazhen-msft
Community Support
Community Support

@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
V-pazhen-msft
Community Support
Community Support

@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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.