Append excel data and In house database data that gets refresh evey 24 hour

0 votes
I am trying to build a trended visualization and for that i am using database that gets refresh in 24 hour. Is there any way to keep the old data in power BI and append with the fresh data
Mar 20 in Power BI by rahul_verma05@live.com
24 views

1 answer to this question.

0 votes

Hi,

You can try this way,

A  -  Actual Table,  N  -  New Table,  AN  -  Actual + New Table

Step 1:  Connect to the Mysql database and retrieve the tables.

Step 2:  In the Power Query Editor page, go to View tab and click on query settings. In the space provided for SQL Statements, write CREATE TABLE IF NOT EXISTS NEW_TABLE_NAME ( [same table definition] ) and then insert into new table (select * from actual table) . 

Step 3,4:  When the data is refreshed, the actual table is updated. The sql statements are run again for each refresh, so it would not create a new table and the old data still remains in the new table.

Step 5,6: Then append the new table to actual table to get your updated + old data.

Hope this helps you.

answered Mar 20 by Sindhu

Related Questions In Power BI

0 votes
1 answer

How do you schedule Data Refresh in Power BI?

Hi, Following could be the reasons why this ...READ MORE

answered May 21 in Power BI by Avantika
• 1,500 points
24 views
0 votes
1 answer

Refresh power bi report every hour

You’ll have a Power BI service option ...READ MORE

answered Sep 24, 2018 in Power BI by Hannah
• 14,090 points
239 views
0 votes
1 answer

Is there a way to convert JSON data to readable table in power bi

Follow these steps step 1 - Click on ...READ MORE

answered Sep 24, 2018 in Power BI by Hannah
• 14,090 points
1,955 views
0 votes
1 answer

Can I create a Power BI report in Office 365 without my locally installed Office Excel?

Yess!! You can achieve this by using ...READ MORE

answered Sep 26, 2018 in Power BI by Kalgi
• 39,170 points
58 views
0 votes
1 answer

Displaying Table Schema using Power BI with Azure IoT Hub

Answering your first question, Event Hubs are ...READ MORE

answered Aug 1, 2018 in IoT (Internet of Things) by nirvana
• 3,060 points
69 views
0 votes
1 answer

Unable to install connector for Power Bi and PostgreSQL

I think the problem is not at ...READ MORE

answered Aug 21, 2018 in Power BI by nirvana
• 3,060 points
536 views
+2 votes
2 answers

Migrate power bi collection to power bi embedded

I agree with Kalgi, this method is ...READ MORE

answered Oct 11, 2018 in Power BI by Hannah
• 14,090 points
101 views
0 votes
1 answer

Connect power bi desktop to dataset and create custom reports

Yes using Power BI REST API to ...READ MORE

answered Sep 18, 2018 in Power BI by Kalgi
• 39,170 points
91 views
0 votes
1 answer

Looping in Power Query

In Power Query, you often find a ...READ MORE

answered Jan 30 in Power BI by Upasana
• 8,530 points
216 views
0 votes
1 answer

Replace “yes” found in one list with the actual string from another list

Objective : The idea is to use List.Transform twice, ...READ MORE

answered Feb 19 in Power BI by Upasana
• 8,530 points
39 views