Calculated in looping. Flow Power automate - calculated-columns

when the Timesheet list Item is updated, it will calculate the hours with Name and Year/Month as validation, then the results of the calculation will be put on the Summary Hours list.
I've used various ways using power automate but it always fails, is there another way? please
enter image description here
enter image description here

Related

Creating a table in Excel to track performance on 2 data points

I am looking to create an excel table so i can review my colleagues performance on a certain area in work.
The two measurement areas are Resolved Problems and Total time spent. I can pull this info from a dashboard at the end of the week and manually input it to excel.
We have 6 members of the team and i want to be able to input this data as weekly totals per user.
I will then use this data to track trends like who is resolving most problems, who is doing the least. Who spends the most time on problems and who spends the least.
I am not sure the best way to go about this data capture in excel.
Any help is appreciated.
Isn't this something that you would right click, select pivot table, and pivot my person, value column of time, sort by time?

Find Maximum Date from the List Using Excel VBA

I am try to automate one task in my Excel but at one point i am stuck and i am not able to crack it.
SO here in below image as you can see i have order order number and have multiple dates in it. so how can i find maximum date for that particular order and go to next order number and repeat the same step can anyone help me to crack it.

Power Query - FIFO Inventory Valuation

We had experienced a problem with our inventory valuation in DAX, as we got a circular dependency. As DAX is not capable of recursion, we are pretty sure to solve this problem with power query functions.
Problem is the following:
Assuming i start with an initial stock: QTY 900000, Price 0,3 and I also have my monthly Sales QTY and Purchase QTY and price I could create the following (the Excel with the formulas for 2 months is attached)
Then, in the next month I would "just" need to take my closing inventory price as my opening price.
This is where the problem sits as it would need to be calculated first and then referencing itself while defining the formula like so:
openingunitrate=
if "initialstockunitrate"=blank() then
inventoryfromopening(monthyear-1)*openingunitrate(monthyear-1)+
inventoryfrompurchases(monthyear-1)*purchaseunitrate(monthyear-1)
/
closingstock(monthyear-1)
else
"initialstockunitrate"
Also what would need to be done is a grouping per "Category" and the column compliance_year. It should start in the next year with 0 as we only have an initial stock this year.
I don't know if this will actually require a recursive function in PowerQuery, so if you have any other idea how to solve it, it's fine as well! In my head this logic totally makes sense but as I have little experince with PQ I'm struggling to actually code it there.
I attached an Excel file that includes both the calculation done in Excel and the sample data which would need to be enhanced.
Please find it under the following link:
Sample Data
thanks and regards,
Martin

Excel - A row in my Pivot table calculates sum wrongly only for some entries (same data type/format)

I created a tracker of learning hours in order to conduct an experiment.
For the purpose of the ticket, there is a time series that does not sum correctly data in Pivot table.
Some other tickets on Stack Overflow mention how to correctly sum. Here's what I tried:
considered blank spaces > the Pivot does not consider them anymore, yet the issue persist.
data type & format > the whole column is set for data type short date
labeling > I use to copy-paste the category for each learning and I double checked if there was no typo in them.
Here's how the file works. There are 3 sheet in my Excel file. The core of it is "Data" where I do track the time spent for each learning / exercise. The columns marked in red are the ones used for the next Pivot Table.
These information are consolidated in another sheet, called SuperLearner Review. I use this one to display overall learning hours by type and category. Numeric outputs here are looked up from Data (or calculated accordingly).
After several checks, I cannot retrieve the issue. All I know is that for February data are not tracked correctly.
Originally I attributed either to wrong data labeling or format, but I can manually see what is the real sum of learning done in February:
In the data-series those hours seem not to display. This is what the Pivot table returns instead:
Whereas, for the consolidated information (coming from the same source) does not seem there are problems in calculation:
When I tried to cancel and build up again the same Pivot Table, the same error occur. So I am not getting out of this wrong calculation. Therefore it must not be a problem of calculation, rather than Excel does not retrieve some data entries at one point.
What would you recommend? Thanks for the help.

Excel vba to work out average score

the attached shows a small example of a scorecard i have at work for drivers, the list is many lines long, around 120 drivers, i export a report each week and it produces the attached, i have added code to tidy it up and work out scores. I then have to work out an average score for the week for each driver but can't for the life of me think how to do it using code. Any help would be appreciated.
Fill the empty cells with the respective driver names and then build a pivot table. No code required to calculate averages per driver per week. That's just a few clicks. Add more data and refresh the pivot table. No VBA. Just Excel out of the box.
You may not even have to produce the report in the screenshot, but start with the original data. Pivot tables are used for exactly that: aggregate, slice and dice large amounts of data.

Resources