Hello all,
I have a SharePoint list which contains three columns (Category, Activity & Tool). I am trying to create a flow to get an output of just the number of rows that matches each column criteria.
I tried using a filter array with the expression:
@And(equals(item()?['Title'], 'Communication'), equals(item()?['Activity'], 'With cargo'), equals(item()?['Tool'], 'email'))
[in the above expression Column and Condition]
And then Compose:
length(body('Filter_array')?['Value'])
But I am getting an error at Compose action and I am not even sure this is the right way. Can anyone assist me to fix this so that I only get the number of counts from the SharePoint list with filter criteria for each column?
PS: I achieved this in PowerApps using the below expression:
If(
CountIf(Categories, Category = "Communication" && Activity = "With cargo" && Tool = "email") = 0,
Blank(),
CountIf(Categories, Category = "Communication" && Activity = "With cargo" && Tool = "email")
)