Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
pema012
Regular Visitor

count columns by type

Hi,

I'm all new to Power BI so please bare with me.

 

I've got a table with mixed columns mostly text and Int64.

I want to count all the columns that are Int64 and calculate the sum times 5.

 

So,

If I've got 5 columns with int64 the result should be 25.

Then if I add a column the result should be 30 and so on.

 

This is probably an easy task but my experience of Power BI and Power Query is just above none at all.

 

Can someone please help me explain how to do this?

 

Regards,

Peter

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@pema012 , Check if these functions can help

Power Query Table.ColumnCount, Table.ColumnNames, Table.ColumnsOfType- https://youtu.be/HGEj81PO_6E

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@pema012 , Check if these functions can help

Power Query Table.ColumnCount, Table.ColumnNames, Table.ColumnsOfType- https://youtu.be/HGEj81PO_6E

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.