Nested Foreach Loop

Hi

I want to copy “Average of Hourly” and “Count of Traveller” data from “Sheet1” as DT1
Paste it in “NursingAllied”, Column “Current Rate Avg” and “Prior Rate Avg” as DT2

See the image Below…

Her is my code

image

this it the Ouput after write range

**


**
I stuck here 3days now :frowning:
Any advice?

Thank you in advance…
-Vincent

if you have both the pivot excel in a dt and the nursing excel in a dt. Compare the row labels and site column if they match assign the data if they dont match break the inner loop using break activity. Like pivot make it the outer loop and nursing allied the inner loop

hi @muktadir do you have sample workflow?

Hi @Vincent_Nuestro

Which part exactly are you stuck on?

SampleVN.zip (16.2 KB)

Does this sample workflow help you? If so, check this link.

Cheers

Steve

hi @Steven_McKeering

Upon writing the report Outside the nested Loop

The problem now is only row1 is correct.

i dont Know what happened to the rest