As the title indicates, how can this function be completed.
Thank You!
Dennis
Solved! Go to Solution.
Hi @Dennis_Qiang ,
So do you mean that if you add distinct function with filter function, your gallery will disappear?
That's really stranage.
The formula should have no problem.
I also made a similar test and not met this problem neither.
Have you choose right field for this gallery to display?
Since you set the gallery's Items to distinct function, you will only have Result column.
So you need to choose Result column to display in the gallery.
Best regards,
Hi @Dennis_Qiang ,
Do you want to display no-repeated items in gallery?
Could you tell me
1)which column do you want to be no-repeated? this field's data type?
2)how does other fields display? For example: field1:1, field2:text; field1:1, field2:text1
Display no-repeated field1, then whether do you want to display field2 to be text, text1 or not display?
I assume that you only want no-repeated field1 and it is text type.
If so, you could use Distinct function.
The Distinct function evaluates a formula across each record of a table and returns a one-column table of the results with duplicate values removed. The name of the column is Result.
You could set the gallery's Items like this:
Distinct(Filter(...),fieldname)
//please replace fieldname with the field that you want no-repeated value
Here's a doc about this function for your reference:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-distinct
Best regards,
I have try this method. But Distinct doesn't work at Gallery screen and can not show the filter result.
If i remove "Distinct ". The Gallery screen will show but i want the item in redbox just appear only once!!
Do you have idea for this problem? Please help!!
Hi @Dennis_Qiang ,
So do you mean that if you add distinct function with filter function, your gallery will disappear?
That's really stranage.
The formula should have no problem.
I also made a similar test and not met this problem neither.
Have you choose right field for this gallery to display?
Since you set the gallery's Items to distinct function, you will only have Result column.
So you need to choose Result column to display in the gallery.
Best regards,
User | Count |
---|---|
183 | |
106 | |
89 | |
44 | |
43 |
User | Count |
---|---|
226 | |
108 | |
106 | |
68 | |
67 |