Hi,
I have the following below code in my gallery which returns a "Yes" in the gallery column Results if all if statements are met.
I need to expand on my if statement that for all "Yes" values I must only get the "Yes" value with the least usage and this will be shown in my Results column as "Yes". So technically I should only have one result.
usage is a column in my gallery although its based on a calculation.
Any help is greatly appreciated
If(ThisItem.INDEX <> CountRows(MyCol),
If(
(Month(ThisItem.MY_DATE) >= 10 ||
Month(ThisItem.MY_DATE) <= 3) &&
(Month(DateValue(Index(MyCol,ThisItem.INDEX + 1).MY_DATE)) >= 10 ||
Month(DateValue(Index(MyCol,ThisItem.INDEX + 1).MY_DATE)) <= 3) &&
Index(MyCol,ThisItem.INDEX + 1).REASON = "25",
"Yes",
"No"
))