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 Platform Community / Forums / Power Automate / How to count numbers o...
Power Automate
Answered

How to count numbers of columns in a datatable in Power Automate Desktop

(0) ShareShare
ReportReport
Posted on by

Greetings. 

I'm running a flow to extract tables from a PDF and write them into an Excel file. The way the document is designed, Power Automate extracts two different types of tables, one with 12 columns and one with 13 columns. 

 

I only want to keep the ones with 13 columns. 

 

In the If statement, is there a way to check how many columns are in the specific datatable (such as ExtractedPDFTables[Index]) that I can use to format the if statement? Looking at the list of properties in the support docs, it seems that there is only a rowcount, not a columncount property.

If there is no way to do this, is there a way to check if a specific cell is the datatable is blank? That might also work ...

Thanks for any help.

I have the same question (0)
  • Verified answer
    Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @AdvOfJet 

     

    Yes you can achieve that by this 

    Nived_Nambiar_0-1682694082533.png

     

    Look at the if condition

    Nived_Nambiar_1-1682694101512.png

     

    Nived_Nambiar_2-1682694134277.png

     

    Hope this helps 🙂

     

    Mark it as solution if it resolves your query 🙂

     

     

  • AdvOfJet Profile Picture
    on at

    Yup that is exactly what I was looking for! Thanks a ton for the help!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 167

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard