Need final count of records

Hi All,

I have below code where i need count of records where mentioned fields are not null. But i am not getting my desired output. Please correct me where i am missing.

I just want final output is count only.Now i am getting sum of total count and output result is also equal to total number of rows which is wrong. please suggest if u have any idea

a!forEach(local!datasubset.data,
if(and(rule!APN_isBlank(local!datasubset.data["test1"]),rule!APN_isBlank(local!datasubset.data["test2"])),{},
count(
local!datasubset.data["id"]
)
)
)

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data