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
Unanswered

Index Function

(0) ShareShare
ReportReport
Posted on by 372

Hi,

 

I got 'ghost' error😭

 

I have patch function, I want to get my second largest data. I used this:

 

'Next Location': Index(Sort(
   Filter(
      AllRecapSOW, 
      'No. PO' = SOPOWBS_5.Text
        ), 'No Sec SOW', SortOrder.Ascending),
          2
).Area

 

Everything works well, but I dont know suddenly I got error "The 'Index' function cannot be called with an empty table."

 

Can anyone help me? Thankyou!

Categories:
I have the same question (0)
  • gcmfaizan Profile Picture
    1,022 on at

    Hi @firda59 ,

     

    can you try this formula with CountRows function it's help you to encounter this error, your new formula may looks like this:

    If(
     CountRows(
     Filter(
     AllRecapSOW, 
     'No. PO' = SOPOWBS_5.Text
     )
     ) > 1,
     Index(
     Sort(
     Filter(
     AllRecapSOW, 
     'No. PO' = SOPOWBS_5.Text
     ), 
     'No Sec SOW', 
     SortOrder.Ascending
     ),
     2
     ).Area,
     "No second largest data"
    )

     

    If this is the answer for your question, please mark the post as Solved.
    If this answer helps you in any way, please give it a like.

     

    Thanks!

  • firda59 Profile Picture
    372 on at

    @gcmfaizan 

     

    I try that formula, and I got "No second largest data". I think its because the SharePoint list has more than 2000rows. Do you know how to read data SharePoint list more than 2000?

  • gcmfaizan Profile Picture
    1,022 on at

    @firda59  can you Verify the actual threshold configured in your SharePoint/powerapps? If it's lower than the default 5000. The threshold is set at 5000 items by default, but it can be lower based on the configuration and performance of your SharePoint/powerapps.

  • firda59 Profile Picture
    372 on at

    @gcmfaizan how to do it? I never do that before

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 899

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 499

Last 30 days Overall leaderboard