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, 2019 in Power BI by rahul_verma05@live.com
754 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, 2019 by Sindhu

Related Questions In Power BI

0 votes
0 answers

What strategies do you use to avoid redundant transformations in Power Query that slow down data refresh?

What strategies do you use to avoid ...READ MORE

Oct 30, 2024 in Power BI by Evanjalin
• 18,340 points
150 views
0 votes
0 answers

What strategies do you use to avoid redundant transformations in Power Query that slow down data refresh?

What strategies do you use to avoid ...READ MORE

Nov 5, 2024 in Power BI by Evanjalin
• 18,340 points
168 views
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, 2019 in Power BI by Avantika
• 1,520 points
1,026 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,130 points
1,518 views
+1 vote
1 answer

Unable to install connector for Power Bi and PostgreSQL

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

answered Aug 22, 2018 in Power BI by nirvana
• 3,130 points
2,867 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
• 18,520 points
1,649 views
+1 vote
1 answer

Connect power bi desktop to dataset and create custom reports

Open power bi report nd sign in ...READ MORE

answered Oct 10, 2023 in Power BI by Monika kale

edited 5 days ago 1,791 views
0 votes
1 answer

Looping in Power Query

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

answered Jan 30, 2019 in Power BI by Upasana
• 8,620 points
5,700 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, 2019 in Power BI by Upasana
• 8,620 points
912 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP