Hi all,
I am trying to upload several files with data from different years in PQ. These files have dates (DD/MM/YY) as headers which need to be unpivoted in order to have a single column named "dates".
The process I follow in PowerBI is: upload a folder, combine and transform the files in the folder, clean the first file in PQ using "transform sample file".
After unpivotting the dates in the first file however I have a problem with the other documents which have different dates belonging to different financial years. As a result I am not able to combine the data between those files in fact only the data from the first one is successfully uploaded in powerbi.
All the other files would show an error because after unpivotting the dates in the first report PQ would be looking for the same dates in the other files too.
Is there a way to fix this issue or to get around it? What I'm trying to achieve is to combine the data of several financial years in order to analyse and compare that data in powerBI.
Thanks a lot for your help
I supect that you are unpivotting by selecting the date columns and then Unpivot Selected Columns. If so, change the process by selecting the non-date columns and then Unpivot Other Columns. That should solve it
Hi Riny,
I tried to do as you suggested but I still get an error message.
In fact, I have tried to follow the same process by creating a new folder with two files using data from the same 12 months period ( The two files are named actuals and budget) but I still get an error.
If I click on the "invoke custom function" in PQ the error I shown for the budget file is the following:
An error occurred in the ‘Transform File (2)’ query. Expression.Error: The key didn't match any rows in the table.
Details:
Key=
Item=Actuals
Kind=Sheet
Table=