Forum Discussion
Way to query data using SQL and csv file
Hi NancySharma
All the work should be done in Power Query (which sits before Power BI). You can query your CSV file and you will have to read all of it. Then in Power Query, you can generate a list values from the CSV file that you are interested in and finally use that list inside your T-SQL query statement in the WHERE clause.
Yes i tried this approach but apparently when i refresh my csv file this query stops working. Is there a workaround for that or any other solution.
- Phil_Seamark8 years agoMicrosoft Employee
Hi NancySharma
It shouldn't stop. Power Query should be smart enough to know that it needs to fully load the CSV table to generate the list you need for your SQL data source. If you click the view dependances button on the PQ ribbon you should see a diagram showing the flow of the logic.
I think something else might be causing an issue.
- NancySharma8 years agoRegular Visitor
It does not work when i move Power BI File from one user to another
- NancySharma8 years agoRegular Visitor
It does not work when i move Power BI File from one user to another. am i doing something wrong?
- Phil_Seamark8 years agoMicrosoft Employee