Requirement: In a Power BI report I have loaded the data using a local CSV file and SQL Server. Data in SQL server will be updated frequently. I have published the report in Power BI server and added data gateway connections to refresh the data in report. But every time refresh runs, data will refresh in datasets of both SQL Server and CSV but there are no updates in CSV file so why it should refresh. I did some research and found a option to disable the refresh for a datasets in Power Query editor. Disabling data refresh will only work in Power BI Desktop, it will not work in Power BI server. So lets have a look at different approaches to do this.
Make data easy with Helical Insight.
Helical Insight is world’s best open source business intelligence tool.
Solution: Data should be entered manually in Power BI Desktop. I have found two approaches to do this
First Approach:
- Open Power BI Desktop
- Instead of choosing Get Data, Click on Enter Data
- Create Table window will open
- Copy the data from CSV and paste the in the Create table window
- But here Power BI have the limitation to copy the data of less than 3000 cells
- So this approach will work only if we have less data I.e around 3000 cells of data
Second Approach:
- Open Power BI Desktop
- Load the data from CSV
- Open Query Editor
- Remove the step Promoted Headers if the headers are promoted from first row
- Select all the columns. Right click and click on Merge to merge all the columns
- Select the comma as separator, click OK. All the columns are merged into one column
- Convert the column into a List. Convert to List is available in Transform section
- Click on Advance Editor. New window will open
- Add the step to combine all rows into one with the separator ‘=’ and the output should be that step
- Click OK, Copy the text
- Click on New Source and select Blank Query
- Click on advance editor for the new query
- Enter the copied text in source. It will look like below
- Conver the text into a table
- Click on Split column in Transform
- Select the Equal sign as separator and choose split into as Rows
- All rows will be separated. Now we have to split the columns which are separated by comma
- Click on Split column, choose comma as separator. Click OK
- Delete the existed datasource which loaded using CSV file
- Load data from another datasources.
- Create report and publish
- Add the schedules to refresh the data
- We do not need any gateway to refresh the local csv data file as we have embedded the data in Power BI report itself.
Make data easy with Helical Insight.
Helical Insight is world’s best open source business intelligence tool.
Thank You
Ramu Vudugula
BI Developer
Helical IT Solutions Pvt Ltd
Best Open Source Business Intelligence Software Helical Insight Here
A Business Intelligence Framework
Best Open Source Business Intelligence Software Helical Insight is Here