Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello,
I have a folder with a bunch of flat files that were extracted every month for the past ten years, so 120 files. However, I want to be able to get only the files from the past five years. The date is in all the filenames. This is what I did :
#"Custom Column added" = Table.AddColumn(Source, "Custom", each Number.FromText(Text.Range([Name],0,4))),
#"Custom Column added1" = Table.AddColumn(#"Custom Column added", "Custom.1", each if [Custom] >= List.Max(#"Custom Column added"[Custom])-4 then 1 else 0),
#"Filtered Rows" = Table.SelectRows(#"Custom Column added1", each ([Personnalisé.1] = 1)),
However, the files are all loaded everytime I duplicate the table which takes an enormous amount of time. Is there a better option that optimizes performance?
Thanks in advance,
ETA: Here's a sample of the data in Power Query
Content | Name | Extension | Date accessed | Date modified | Date created | Attributes | Folder Path | Custom | Custom.1 |
Binary | 2020-11-30 TX_[...].xlsx | .xlsx | 2022-05-30 11:13:23 | 2022-05-30 11:13:23 | 2022-05-30 11:13:24 | Record | C:\[...] | 2020 | 1 |
Binary | 2015-11-30 TX_[...].xlsx | .xlsx | 2020-05-30 11:13:23 | 2020-05-30 11:13:23 | 2020-05-30 11:13:23 | Record | C:\[...] | 2015 | 0 |
LUNM
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
97 | |
82 | |
67 | |
61 |
User | Count |
---|---|
150 | |
120 | |
99 | |
87 | |
68 |