Notifications
Announcements
Hi, I am trying to sort the gallary based on the quantity of InsatallBaseEndUser. On my gallary's item's property I have 'Sort(Distinct(ColEU,installedbaseEndUserName),SortOrder.Descending) ' .
Hi @RafeAdilSk,
Do you want to distinct each installedbaseEndUserName and cauculate how manys rows in each distinct user group?
If so, please set the Items property as below:
Sort(AddColumns(Distinct(ColEU,installedbaseEndUserName),"Quantity",CountIf(ColEU,installedbaseEndUserName=Value)),"Quantity",SortOrder.Descending)
Hi @v-qiaqi-msft updated the items property still not sorting accordingly.
I have tested it in my scenario, the formula works as expected, tell me what makes the difference in your scenario?
Count a wrong quantity for some special user?
Hello @v-qiaqi-msft
The sorting is happening on the enduser names instead of the quantities they have. Nothing seems changed.
Hi @RafeAdilSk,
That's weird.😂
The logic is correct and the syntax is also correct.
This is my testing result
Try to re-write the formula.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 717 Most Valuable Professional
Michael E. Gernaey 329 Super User 2025 Season 2
Power Platform 1919 268