Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
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
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 6 | |
| 5 |