I try to use power automate to "filter array" action to filter the excel list row by different columns depending on the year at that moment. But I couldn't add any dynamic variable into the item() function. Please give me some suggestions or alternatives. Thanks!
More detail about my scenario is following.
This year (2022), the filter array condition would be :
@And(not(equals(item()?['2022委託繳費編號'], '#N/A')),not(equals(item()?['2022委託繳費編號'],'')))
Next year (2023), the filter array can automate change the condition to:
@And(not(equals(item()?['2023委託繳費編號'], '#N/A')),not(equals(item()?['2023委託繳費編號'],'')))
In 2024, the filter array can automate change the condition to:
@And(not(equals(item()?['2024委託繳費編號'], '#N/A')),not(equals(item()?['2024委託繳費編號'],'')))
and it can be keep update following the regulary forever.
@And(not(equals(item()?['(That Year)委託繳費編號'], '#N/A')),not(equals(item()?['(That Year)委託繳費編號'],'')))
Only the number change depending on that year. Chinese words wouldn't change.
