A very similarly worded subject title has been posted elsewhere, but unfortunately it didn't solve my issue.
I am trying to show different images on a cascading menu based on whether the item (parent/child/subchild) has children items.
If there are no children items, the image shown should be Blue_Circle.
Currently, the logical test I am trying to use do determine whether Blue_Circle appears is based on the ID number of the items. Eg:
Item 1 is a parent of 1.1 and 1.2. Item 1.2 is a parent of 1.2.1 and 1.2.2.
Item 2 is a parent of 2.1 and 2.2
Item 3 has no children.
Item 4 is a parent of 4.1 and 4.2. Item 4.1 is a parent of 4.1.1 and 4.1.2.
The logical test is as follows:
1) Check whether the item's ID number is contained whether any other ID numbers.
2) Count the total number of matches.
3) If the total in 2) is 1, then display the blue dot.
This does not work and I'm consequently not sure how to use isMatch() within a collection! I keep getting the error "The function "isMatch()" has some invalid arguments" with no elaboration on what's wrong.
I believe that isMatch() requires a text value to compare against, but using the text() function to enclose thisitem.ID_number does not solve the issue.
Here's the code:
If(
CountA(ForAll(Col_Media_AirportData1,IsMatch(ID_Number,ThisItem.ID_Number,Contains)))=1,
Blue_Circle,
If(
ThisItem.Expanded,
Blue_Triangle_Expanded,
Blue_Triangle_Collapsed
)
)