I have an app that is used for building permits that I had built out of SharePoint. Inspectors can use the app to enter new permit forms or existing permits if the business already has some. The app uses a filter that uses dropdown menus to sort the permits by the Inspector, the status of the permit form (draft, submitted), month of inspection and year. The Month and Year are filter are from a Date column called inspection date. Some buisiness can apply for new permits months after the first one, so being able to pull up the orignial form to edit was needed.
Unfortuantely, I get a delegation warning on the Month part of the formula. Is there a workaround for this? I was under the impression that the DateTime column was delagatable. I've increased the data row limit from 500 to 2000 in the meantime but will need to find a workaround for this as it's being heavily used now.
This is the forumla I am using on the gallery.
Any help would be greatly appreciated.
Hi @bclem ,
The non-Delegable elements are the Month() and Year() conversion of the date column. The code below may not be a complete solution if the output of the top filter exceeds your Data Row Limit
With(
{
_Data:
SortByColumns(
Filter(
'Permit Form',
Inspector.Value = InspectorDropdown.Selected.Value,
Status.Value = StatusDropdown.Selected.Value,
StartsWith(
Business,SearchInput1.Text
)
),
"Modified",
SortOrder.Descending
)
},
Filter(
_Data,
Month('Date of Inspection') = MonthDropdown.Selected.ID,
Year('Date of Inspection') = YearDropdown.Selected.Value
)
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
MVP (Business Applications) Visit my blog Practical Power Apps
WarrenBelz
146,645
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,997
Most Valuable Professional