Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
I have a table with a Job_Created_On date. The issue I'm facing is the data contains Job_Created_On dates many years into the future. This is not logically possible as the most recent date for a Job_Created_On is TODAY.
I'm trying to improve my report performance so I want to remove any records from my table with a Job_Created_On date that is in the future. I want to limit the table to Job_Created_On dates that are TODAY or in the past.
How can I do this?
Solved! Go to Solution.
Hi @ERing,
You can use a SelectRows which compares it with the DateTime LocalNow.
Below is an example
1. The below line is added as a new step via the advanced editor.
#"Filter Future Dates" = Table.SelectRows(#"Changed Type", each [JOB_CREATEDON] <= DateTime.LocalNow())
2. Below is the test data before that new step
3. Below is the test data after the new step (all the future dates are filtered)
Hi @ERing
Try below video for better understanding
https://www.youtube.com/watch?v=cepZFDUwLQM
https://www.youtube.com/watch?v=rDtMe1exW5g
https://www.youtube.com/watch?v=7jJTEVUtSKI
You can try any technique to get the desired result.
I would suggest simple technique is 3rd video.
I hope I answered your question!
Hi @ERing
Try below video for better understanding
https://www.youtube.com/watch?v=cepZFDUwLQM
https://www.youtube.com/watch?v=rDtMe1exW5g
https://www.youtube.com/watch?v=7jJTEVUtSKI
You can try any technique to get the desired result.
I would suggest simple technique is 3rd video.
I hope I answered your question!
Hi @ERing,
You can use a SelectRows which compares it with the DateTime LocalNow.
Below is an example
1. The below line is added as a new step via the advanced editor.
#"Filter Future Dates" = Table.SelectRows(#"Changed Type", each [JOB_CREATEDON] <= DateTime.LocalNow())
2. Below is the test data before that new step
3. Below is the test data after the new step (all the future dates are filtered)
User | Count |
---|---|
64 | |
59 | |
47 | |
33 | |
32 |
User | Count |
---|---|
84 | |
75 | |
56 | |
50 | |
44 |