web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Answered

sort by ID

(0) ShareShare
ReportReport
Posted on by 525

Hello Everyone ,

 

i have filter gallery and i want to see my data when new record create output on my gallery will appear new records on top ,

i mean new ticket on top 

i am using this formula but not working there is no error on formula but seems like not working 

suggest me if any solution 

my DataSource is from splist and view my data by New Record ID which is comes from ID column from list

 

sorting 2.PNG
queryyy.PNG
sorting error.PNG
Categories:
I have the same question (0)
  • Verified answer
    BCBuizer Profile Picture
    22,720 Super User 2026 Season 1 on at

    Hi @mbhatt ,

     

    From a syntax perspective there was something weird going on in your conditions. Also the Sort function was missing. Can you try the below:

     

    Sort(
    	If(
    		User().FullName = "Maulik Bhatt",
    		'HH Power App',
    		Filter(
    			SpCollection,
    			'Created by'.DisplayName = User().FullName || ID = Value(TextInput6.Text)
    		)
    	),
    	ID,
    	SortOrder.Descending
    )

     

    Ps. Please post your formulas in text as well to prevent having to re-type everything which takes more time, effort and is more prone to errors.

  • Verified answer
    mbhatt Profile Picture
    525 on at

    Thank you So much sir its work for me.

  • Verified answer
    mbhatt Profile Picture
    525 on at

    Hello 

    @BCBuizer 

     

    Your formula is work but somehow i can see all data but user will not able see their own data ... see blank 

  • Verified answer
    BCBuizer Profile Picture
    22,720 Super User 2026 Season 1 on at

    Hi @mbhatt ,

     

    In your original formula you gave two different data sources, depending on whether or not you are the user:

     

    You (Maulik Bhatt"): 'HH Power App'

    Everyone else: SpCollection

     

    Is the collection properly populated? If not, that can explain why other users don't see anything. You can resolve that by either populating the collection correctly, or by using using 'HH Power App' for the other users as well:

     

    Sort(
    	Filter(
    		'HH Power App',
    		User().FullName = "Maulik Bhatt" || ('Created by'.DisplayName = User().FullName && (IsBlank(TextInput6.Text) || ID = Value(TextInput6.Text)))
    	),
    	ID,
    	SortOrder.Descending
    )

     

    Ps. In the above I also changed the condition for the ID filtering because it doesn't make sense for a user to be able to filter for other User's records. Now, with TextIput6, they can filter for one specific ID as long as they created it.

  • Verified answer
    mbhatt Profile Picture
    525 on at

    Hi

    @BCBuizer 

     

    with this new formula i got delegation warning might not process large dataset 

    Please look screenshot 

     

     

    delegetion warning.PNG
  • Verified answer
    mbhatt Profile Picture
    525 on at

    with this new formula i got delegation warning might not process large dataset 

    Please look screenshot. 

    please ignore my previous screenshot 

    deligation.PNG
  • Verified answer
    BCBuizer Profile Picture
    22,720 Super User 2026 Season 1 on at

    Hi @mbhatt ,

     

    Besides the delegation warning I ran into a further issue where items weren't showing up, so please try:

     

    Sort(
    	If(
     User().FullName = "Maulik Bhatt",
     'HH Power App',
     Filter(
     'HH Power App',
     'Created by'.DisplayName = User().FullName,
     IsBlank(TextInput6.Text) || ID = Value(TextInput6.Text)
     )
     ),
    	ID,
    	SortOrder.Descending
    )
  • Verified answer
    mbhatt Profile Picture
    525 on at

    Hello @BCBuizer 

    i try this formula also. but there is no data visible from user side as i am Maulik Bhatt admin i can see all 

    but user not able to see anything 

    do i need to update any formula in APP on Start Or on visible property?

    to can see data ? here i am attach the formula on app start i use this all 

     

    user side.PNG
    Inkedapp on start property.jpg
    admin side.PNG
  • Verified answer
    BCBuizer Profile Picture
    22,720 Super User 2026 Season 1 on at

    Hi @mbhatt,

     

    Where in the user screen is TextInput6? The filter has been set up to use that, but in your screenshot I don't see it. Perhaps this has a default value like "Text input", which is causing the user to not see anything since that is not a valid ID.

  • Verified answer
    mbhatt Profile Picture
    525 on at

    Hi

    @BCBuizer 

     

    Textinput6 is my search engine i mean search text and i make this for search Data by ID .

    you may see in screenshot 

    textinput6.PNG

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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 834

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard