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.
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
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 .
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
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 .
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
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.
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