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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard