Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
This problem has been driving me round the bend for the last few days. The client for whom I'm creating reports do not have access to their main database and so far receive their data in tabula form in Excel. I want to apply parameters when importing data for Power BI reporting but have so far been unsuccessful in this as I can't use any sql queries or stored procedures.
I am able to create the parameters but cannot apply them on data import. Any attempt to do so by following the steps of applying the parameter in the Data Source dialogue as outlined in the below article returns errors.
https://powerbi.microsoft.com/en-us/blog/deep-dive-into-query-parameters-and-power-bi-templates
Solved! Go to Solution.
You could use ODBC.Query() to bring in Excel data. Though it's rather limited in what functions can be used.
Ex:
Connection string
dbq=\\server\FOLDER\samplefile.xlsx;defaultdir=\\server\FOLDER;driverid=1046;maxbuffersize=2048;MaxScanRows=1;pagetimeout=5;dsn=Excel Files
Then you can use something like...
Select t1.* From [Sheet1$] as t1 Where t1.Column1 >= '20'
Then in advanced editor, replace '20' with parameter value.
If that isn't possible, you can always use parameter to filter the data brought in.
This problem has been driving me round the bend for the last few days. The client for whom I'm creating reports do not have access to their main database and so far receive their data in tabula form in Excel. I want to apply parameters when importing data for Power BI reporting but have so far been unsuccessful in this as I can't use any sql queries or stored procedures.
I am able to create the parameters but cannot apply them on data import. Any attempt to do so by following the steps of applying the parameter in the Data Source dialogue as outlined in the below article returns errors.
https://powerbi.microsoft.com/en-us/blog/deep-dive-into-query-parameters-and-power-bi-templates/
You could use ODBC.Query() to bring in Excel data. Though it's rather limited in what functions can be used.
Ex:
Connection string
dbq=\\server\FOLDER\samplefile.xlsx;defaultdir=\\server\FOLDER;driverid=1046;maxbuffersize=2048;MaxScanRows=1;pagetimeout=5;dsn=Excel Files
Then you can use something like...
Select t1.* From [Sheet1$] as t1 Where t1.Column1 >= '20'
Then in advanced editor, replace '20' with parameter value.
If that isn't possible, you can always use parameter to filter the data brought in.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 52 | |
| 38 | |
| 37 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 67 | |
| 67 | |
| 34 | |
| 32 | |
| 29 |