Re: Filter Gallery using custom field
Hi @indhaa
We need to change the way OverDueCalculated.
Set the Items property of Gallery to (Using Existing code that I sent)
//DeviceOrdering
Filter(
AddColumns(
DeviceOrdering,
"OverDueCalculated",
With(
{
DateRange: ForAll(
If(
ThisRecord.DueDate > Today(),
Sequence(
ThisRecord.DueDate - Today(),
0
),
Sequence(
Today() - ThisRecord.DueDate,
0
)
),
Weekday(
DateAdd(
DueDate,
Value
)
)
)
},
If(
IsBlank(DueDate) || DueDate > Today(),
0,
DateDiff(
DueDate,/* Start Date */
Today()/* End Date */
) - CountRows(
Filter(
colHoliday,
HolidayDate >= DueDate,
HolidayDate <= Today()
)
) - CountRows(
Filter(
DateRange,
Value = 6
)
) - CountRows(
Filter(
DateRange,
Value = 7
)
)
)
)
),
OverDueCalculated < Slider1.Value
)
in the gallery Set the Text property of OverDue Label control to
ThisItem.OverDueCalculated
Note: Change the SliderName (Slider1)