• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Power Query table refreshing and adding rows in same table|Power Query|Excel Forum|My Online Training Hub

You are here: Home / Power Query table refreshing and adding rows in same table|Power Query|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumPower QueryPower Query table refreshing and ad…
sp_PrintTopic sp_TopicIcon
Power Query table refreshing and adding rows in same table
Avatar
thenewbee thenewbee
Member
Members
Level 0
Forum Posts: 21
Member Since:
January 12, 2021
sp_UserOfflineSmall Offline
1
January 12, 2021 - 11:13 pm
sp_Permalink sp_Print

Hello together,

 

I´m new in that stuff.

I connected a web source like in this tutorial and it works fine so far:

feature

 

My issue is now, that the source is limmited on 10 lines and every day they add a new one, and delete the oldest one.

When I click in my excel on "refresh", I get a new download of all 10 new lines, but the old valued get lost as well.

 

Is it somehow possible, to extend my table in that way, that I keep the old values in my file?

 

Thank you upfront, I´m sorry, I´m not an native English writer. 🙂

sp_AnswersTopicSeeAnswer See Answer
Avatar
Catalin Bombea
Iasi, Romania
Admin
Level 10
Forum Posts: 1810
Member Since:
November 8, 2013
sp_UserOnlineSmall Online
2
January 13, 2021 - 3:24 pm
sp_Permalink sp_Print

If you load the results to a worksheet, you can take the results table into a new query (this will be your archive, the oldest results), then combine it with the query from web.

The web query should ideally take only the newest entry, not all 10 lines, otherwise you will keep adding duplicates.

Avatar
thenewbee thenewbee
Member
Members
Level 0
Forum Posts: 21
Member Since:
January 12, 2021
sp_UserOfflineSmall Offline
3
January 13, 2021 - 7:50 pm
sp_Permalink sp_Print

Hi,

this sounds good and plausible.

Did I do, as you suggested?  (I´m not sure.)

 

I used as a source a stock, and the current values there, to get an update for each refresh.

In first step, I took values from web by power query like the tutorial and created my source table.

In a second step I created a "dublicate" of the first table, as a kind of archive.

In the third step, I changed the first table and added here as an applied step the second table.

 

Is that the corret way?

Is it possible, to keep just one table?

Avatar
Catalin Bombea
Iasi, Romania
Admin
Level 10
Forum Posts: 1810
Member Since:
November 8, 2013
sp_UserOnlineSmall Online
4
January 14, 2021 - 1:52 am
sp_Permalink sp_Print

Close,
The result table can be read in the same query that reads the web:

let
Quelle = Web.Page(Web.Contents("https://www.ariva.de/tecdax")),
Data0 = Quelle{0}[Data],
OldData = Excel.CurrentWorkbook(){[Name="external_source"]}[Content],
#"Geänderter Typ" = Table.TransformColumnTypes(Data0,{{"Column1", type text}, {"Column2", Int64.Type}, {"Column3", Percentage.Type}, {"Column4", type text}, {"Column5", type number}, {"Column6", Percentage.Type}}),
#"Beibehaltene erste Zeilen" = Table.FirstN(#"Geänderter Typ",1),
#"Angefügte Abfrage" = Table.Combine({#"Beibehaltene erste Zeilen", OldData})
in
#"Angefügte Abfrage"

sp_AnswersTopicAnswer
Answers Post
Avatar
thenewbee thenewbee
Member
Members
Level 0
Forum Posts: 21
Member Since:
January 12, 2021
sp_UserOfflineSmall Offline
5
January 14, 2021 - 6:35 am
sp_Permalink sp_Print

That´s works perfect, thank you 🙂

Also that mixture of German nd English worked....

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Catalin Bombea, Velouria
Guest(s) 11
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 871
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
Jessica Stewart: 204
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Murat Hasanoglu
Brett Dryland
Saeed Aldousari
Bhuwan Devkota
Kathryn Patton
Maria Conatser
Jefferson Granemann
Glen Coulthard
Nikki Fox
Rachele Dickie
Forum Stats:
Groups: 3
Forums: 24
Topics: 6222
Posts: 27291

 

Member Stats:
Guest Posters: 49
Members: 31913
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.