I have problems with my file that you wrote the measures for 2 years ago. I get the following error message but cant solve the problem. Are you willing and able to help.
Thanks,
I figured it out by using a helper table by power query that contained only those invoice numbers with BOXING or COLD HOT. Then using IF and SUMIFS to get the correct price per unit.
Thank you for looking.
I want to calculate the cost of a plant based on what the total costs to buy that plant from a supplier.
I have attached a workbook with what I am working that a supplier sent.
It is straight forward with most of the items with the exception when BOXING or COLD HOT fee is added in the column...
Thanks for adding the totals, I was in the process of asking about it when I saw your message.
I halfway understand the code you wrote but not fully. It is working well.
I will create a new file next week and hope there aren't any problems.
I use Power Query to transform data from Excel files into appends. There are two results that are loaded into the data model and a relationship is created between them. The data model is then loaded to a Power Pivot table.
It works well enough but on the Description field on the pivot table...
That will return the correct week for January 2, 2022 but shifts the other days of that first week into week 2. January 7, 2022 returns a week 2 with the return_type 2. The closest to matching the wall calendar is with return_type 21 but it puts January 2, 2022 into week 52 of year 2021.
I use the formula Weeknum(a1,1) for a date that is January 2, 2022 but it doesn't return week 1 instead it returns week 2.
I have tried various other first week dates January 2, 2022 thru January 8, 2022 and it won't return week 1 but week 2.
I have used the other return_type handles but can't...
I'm not sure I have done it correctly but I can't get it to work.
When I type the item number in A36 it should write the formula in C36 but I can't get it to work.
I hope I have included enough for you to see what I've attempted.
I don't know VBA and asking for help on learning VBA to write a formula in column C if the cell in column A is not empty.
I have attached a workbook with the formula and the way I am using now is to put the formula in more cells than the user will use.
The user may add comments to explain what...
Thank you vletm for the solution. It works well. I don't understand it but it works.
If you have time can you tell me why it works?
Could it be done using Unique() to not use the helper pivot table?
Thank you.