Hi there,
I hope someone could help me here:
This is my situation:
An the beginning of the year I have to produce a list of employees with their savings, every month somebody give me the month end interest and I have to apply that interest to all of the employees that fit into that year. So I need to filter my saherpoint list with the year i.e 2019 and then pacth the month once I have the interest for that month.
In the sample bellow you can see that I have two months Jan and Feb with their interest value, so I need to get March value and hit the Patch this month to have a formula that multiply "interest + Savings" and repeat this for every employee in that list.
Could someone point me in the right direction?
Thank you in advance,
Regards,
Solved! Go to Solution.
Can you confirm that the ID field you are using is a unique for all records in the collection?
Hello,
Yes, the ID taht I am using is the ID generate for my Share Point List.
Perhaps it doesn't like the ID=ID. So let's try this.
ClearCollect(
ColMySPLTable,
AddColumns(
Filter(
MySPLTable,
Year=Cboyear.Selected.Year
),
"TheID",
ID
)
);
ForAll(
ColMySPLTable,
UpdateIf(
MySPLTable,
ID = TheID,
{MarchInterest: Savings * March_Interest.Text}
)
)
User | Count |
---|---|
212 | |
94 | |
85 | |
49 | |
38 |
User | Count |
---|---|
271 | |
104 | |
102 | |
60 | |
59 |