Hello, I'm wondering, is there a function i...

Jenn_M
New Member

Hello,

Iโ€™m wondering, is there a function in AppSheet similar to COUNTUNIQUE from Google Sheets? Or perhaps just UNIQUE?

Iโ€™m still new to expressions, but hereโ€™s what Iโ€™m trying to write: IF(COUNTUNIQUE(SELECT(Employees[Garment Type], [Company]=[_THISROW].[Company]))>2, โ€œresult if trueโ€, โ€œresult if not trueโ€)

Thanks

0 3 330
3 REPLIES 3

Yes, the optional third input to SELECT() tells it whether or not to eliminate duplicates.

Jenn_M
New Member

Perfect, thanks!

Hi @Jenn_M I request you to evaluate following

IF(COUNT(SELECT(Employees[Garment Type], [Company]=[_THISROW].[Company], TRUE))>2, โ€œresult if trueโ€, โ€œresult if not trueโ€)

Please note that in the above expression, the select statement itself selects unique (duplicates free) values in the list. Count merely counts those unique values in the list. I believe the end result is same.

Top Labels in this Space