Hi Guys - I wonder if anyone can help with the below error message? The app works fine when the error message is cleared. I know it has something to the code below that I have in the Area field... Both the area and store data are taken from a different source from the rest of the fields and the store field is dependent on the area field selected.
The code I have in the area field is
SortByColumns(Distinct(Table2,Area),"Result")
Any help to resolve would be greatly appreciated.
Solved! Go to Solution.
Try this:
If(IsBlank(DD_Area.Selected.Result),SortByColumns(Distinct(Table2,Site),"Result"),
SortByColumns(Distinct(Filter(Table2,Area = DD_Area.Selected.Result),Site),"Result"))
or this and let me know if you get your desired result:
If(!IsBlank(DD_Area.Selected.Result),SortByColumns(Distinct(Filter(Table2,Area = DD_Area.Selected.Result),Site),"Result"))
If you appreciated my comments/responses please be sure to Like/Kudo them it really does make me smile 🙂 !
Does the error disappear when you select an area in DD_Area as it looks like the store error is saying it expects a value there based on the filter in order for it to work.
If you appreciated my comments/responses please be sure to Like/Kudo them it really does make me smile 🙂 !
Yeah the error message disappears once an area is selected but when the app is live the error message shows up when users navigate onto the form.
Try this:
If(IsBlank(DD_Area.Selected.Result),SortByColumns(Distinct(Table2,Site),"Result"),
SortByColumns(Distinct(Filter(Table2,Area = DD_Area.Selected.Result),Site),"Result"))
or this and let me know if you get your desired result:
If(!IsBlank(DD_Area.Selected.Result),SortByColumns(Distinct(Filter(Table2,Area = DD_Area.Selected.Result),Site),"Result"))
If you appreciated my comments/responses please be sure to Like/Kudo them it really does make me smile 🙂 !
The first one seems to have worked! Thanks for your help 🙂
You are very welcome I am happy to help 🙂
If you appreciated my comments/responses please be sure to Like/Kudo them it really does make me smile 🙂 !
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.