Hi,
I have a new requirement to filter a gallery based on 2 combo boxes.
I have done the filter for the 1st box and working fine. But I want to filter the Gallery 1st by Month then by model
Following is my current formula under Gallery Item property to filter by model
If(IsBlank(ComboBox3.Selected),SalesDetails_1,Filter(SalesDetails_1,'Model No'.Value=ComboBox3.Selected.'Model Number'))
Under the SalesDetails_1 I have a column name as SalesMonth.
How can I do this?
@mdevaney @PowerAddict and other colleagues.
Osmand
Solved! Go to Solution.
Hi @OsmandFernando ,
If you have faced a Delegation warning issue with your formula in your app, it means that you could not delegate the data process to your data source, instead, you could only process data locally.
In default, you could only process 500 records locally at most. You could change this limit to maximum value -- 2000, then you could process 2000 records locally at most.
If you would like this Delegation records limits to be increased, please consider submit an idea to PowerApps Ideas Forum:
https://powerusers.microsoft.com/t5/Power-Apps-Ideas/idb-p/PowerAppsIdeas
More details about delegable functions supported for CDS connector, please refer to the following article:
https://docs.microsoft.com/en-us/connectors/commondataservice/#powerapps-delegable-functions-and-ope...
If the amount of your data source records is more than 2000, as an alternative solution, you could consider bulk-load records from your data source into a collection in your app, then use the collection as data source in your app instead of the original data source.
Please check and see if the following thread would help in your scenario:
Best regards,
@v-xida-msft Thank you so much for your detailed reply and it is really helpful to understand about delegation issues.
One last question to clear my mind, so the bottom line is ,
we can use collection option to address the delegation warning regardless the number of lines in the SP List right?
Osmand
Merry Christmas to all of you.
@v-xida-msft while you are providing the answer to my last question. I want to say that after following your guidance I was able to create a collection and then after following the formula suggested by @mdevaney The formula I used as below, (I have added the Year as well to the filter)
If(IsBlank(ComboBox3.Selected),SalesbyModelNumber,Filter(
SalesbyModelNumber,
IsEmpty(ComboBox3.Selected)=true Or Model = ComboBox3.Selected.'Model Number',
IsEmpty(ComboBox3_1.Selected)=true Or 'Sales Month' = ComboBox3_1.Selected.Value,
IsEmpty(ComboBox3_2.Selected)=true Or Text(Value('Sales Year'),"[$-en-US]###") = Text(ComboBox3_2.Selected.Value) ))
So now no more delegation warnings now.
Thank you again to @v-xida-msft and @mdevaney
Osmand
Merry Christmas to you as well @OsmandFernando. Now its time to take a well-deserved break!
User | Count |
---|---|
239 | |
116 | |
94 | |
58 | |
32 |
User | Count |
---|---|
287 | |
132 | |
106 | |
63 | |
57 |