cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
krixtsup3r
Helper IV
Helper IV

Count columns

Hi Guys, is there a way to count all of the columns available on the table?

 

I have query that combines all of the table in a folder, as part of countermeasure that it will not lag I want to know first the # of columns available in each table. I have already tried to create a  function using the Table.ColumnCount but it seems like it gives me the overall column count, opposed to what I want- wherein it will count per table

 

ss1.PNG

1 ACCEPTED SOLUTION
Payeras_BI
Solution Sage
Solution Sage

Hi @krixtsup3r ,

For me it works by adding a Custom Column and typing:

Table.ColumnCount([Transform File])

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain

View solution in original post

3 REPLIES 3
Payeras_BI
Solution Sage
Solution Sage

@krixtsup3r 

Payeras_BI_1-1612776326813.png

 

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain
Payeras_BI
Solution Sage
Solution Sage

Hi @krixtsup3r ,

For me it works by adding a Custom Column and typing:

Table.ColumnCount([Transform File])

 

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain

Hey man @Payeras_BI  that worked!

 

I just checked and what I did is actually correct but in a longer method and also 16383 is actually the maxed column that can be added in an Excel file and just noticed that all of my files got **bleep**ed up. 

 

Thank you so much!

Helpful resources

Announcements
August 2022 update 768x460.jpg

Check it Out!

Click here to learn more about the August 2022 updates!

Power BI Dev Camp Session 25 with aka link 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, August 25 at 11a PDT for a great session with Ted Pattison!

August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors