Am using from file from folder to look at monthly csv downloads from my credit card company. (Ref 1)
Since the csv statements do not contain the statement date I am “manufacturing” it from the monthly file name. and consequently using Csv.Document([content]) and when I double click on the custom column I get to see all appended statement fields within the folder including the “manufactured month” field. I then promote the first row to headers and in this instance change the name of the fist column which now reads “Apr” to “Statement” (ref 2)
For those of you that have nodded off by now here in lies the problem, when I move old files (Statement months csv’s) out of the folder and replace them with newer statement activity power query does its thing and when it looks to promote the first row and change the name of the first column it throws out an error as it cannot find the month “Apr” as the first file in the folder might now actually be Jun or Aug…. (Ref 3)
Is there a way to get PQ over this blip or indeed am I expecting too much from the puppy? (And Totally get that if I was not using a manufactured date field there would not be a problem!)
https://www.screencast.com/t/kEjd918D33
Since the csv statements do not contain the statement date I am “manufacturing” it from the monthly file name. and consequently using Csv.Document([content]) and when I double click on the custom column I get to see all appended statement fields within the folder including the “manufactured month” field. I then promote the first row to headers and in this instance change the name of the fist column which now reads “Apr” to “Statement” (ref 2)
For those of you that have nodded off by now here in lies the problem, when I move old files (Statement months csv’s) out of the folder and replace them with newer statement activity power query does its thing and when it looks to promote the first row and change the name of the first column it throws out an error as it cannot find the month “Apr” as the first file in the folder might now actually be Jun or Aug…. (Ref 3)
Is there a way to get PQ over this blip or indeed am I expecting too much from the puppy? (And Totally get that if I was not using a manufactured date field there would not be a problem!)
https://www.screencast.com/t/kEjd918D33