• 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

Sort Machine Name by most recent date|Power Query|Excel Forum|My Online Training Hub

You are here: Home / Sort Machine Name by most recent date|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 QuerySort Machine Name by most recent da…
sp_PrintTopic sp_TopicIcon
Sort Machine Name by most recent date
Avatar
Moshe Arama
Member
Members
Level 0
Forum Posts: 15
Member Since:
September 4, 2022
sp_UserOfflineSmall Offline
1
January 31, 2023 - 7:48 pm
sp_Permalink sp_Print

Hi ,

I have a problem :

i get files from folder that update in a new file every day

i want to show in the table only the recent rows by "Machine Name"

Please look at the pictures and get a sense of what i mean.

picture_2.PNGImage Enlarger

picture_1.PNGImage Enlarger

sp_PlupAttachments Attachments
  • sp_PlupImage picture_2.PNG (146 KB)
  • sp_PlupImage picture_1.PNG (102 KB)
Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1511
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
2
January 31, 2023 - 8:10 pm
sp_Permalink sp_Print

Hi Moshe,

You can do this by creating a query (from blank) that gives you today's date using Date.From(DateTime.LocalNow()))

You can then merge your data table with this date using an inner join to give you just the rows from today.

See attached file.

Regards

Phil

Avatar
Moshe Arama
Member
Members
Level 0
Forum Posts: 15
Member Since:
September 4, 2022
sp_UserOfflineSmall Offline
3
February 1, 2023 - 4:27 pm
sp_Permalink sp_Print

Hi thanks for your answer

But i dont want only the today rows

I want the most resent i mean

Maybe there is a machine that her last active time was in 28/12/2022

i want to see that .

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1511
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
4
February 1, 2023 - 5:04 pm
sp_Permalink sp_Print

Hi Moshe,

You need to be explicit about what you mean by 'recent'.

Please give an example of what you want as a result based on some sample data you provide. The images you provided don't explain what it is you are actually looking to do.

Regards

Phil

Avatar
Moshe Arama
Member
Members
Level 0
Forum Posts: 15
Member Since:
September 4, 2022
sp_UserOfflineSmall Offline
5
February 2, 2023 - 12:26 am
sp_Permalink sp_Print

Hi Phil ,

if you want i can call you and explain more .

but the main idea is to show the last file that i upload to the folder ,

because the main file pull every day from folder new file that load ( picture_1)

i want after refresh i will see only the data of the last file .

Picture_1.PNGImage Enlarger

sp_PlupAttachments Attachments
  • sp_PlupImage Picture_1.PNG (23 KB)
Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1511
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
6
February 2, 2023 - 9:23 pm
sp_Permalink sp_Print

Hi Moshe,

If you are loading and combining all the files from the same folder then you should have a main query and a bunch of other Helper Queries.

To load only the latest file's data, in your main query, select the Source step, you should see something like this

moshe1.pngImage Enlarger

Note the Date Created column. Click on the Down Arrow in the column header, then click on Date/Time Filters and then click on Is Latest.

moshe2.pngImage Enlarger

PQ will ask you to confirm that you want to insert a step, say yes. This new step will only list the most recently created file. The rest of the query steps can then continue working on the data just from that file.

Regards

Phil

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Mynda Treacy
Guest(s) 9
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Ivica Cvetkovski
Blaine Cox
Shankar Srinivasan
riyepa fdgf
Hannah Cave
Len Matthews
Kristine Arthy
Michelle Neven
Andrew Kuhn
Angela Paul
Forum Stats:
Groups: 3
Forums: 24
Topics: 6206
Posts: 27202

 

Member Stats:
Guest Posters: 49
Members: 31875
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.