The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
How can we get an exact column count when the column count is exceeding 1000 in power bi?
In power query it is shown as 999+
What can be done?
Hi @Riddhi_06 ,
In Power Query you can use the Table.ColumnCount function. So if you load your main data into a table called Table, create a blank query called ColumnCount and use this code in it
let
Source = Table.ColumnCount(TableName)
in
Source
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Vijay_A_Verma
i want the total column count
like here in the above screenshot 35 columns are present, if there the value is 999+ for columns
how to get the exact count
To get exact count, you need to issue following formula where Custom1 should be replaced by previous step
= Table.RowCount(Custom1)*Table.ColumnCount(Custom1)
You can also refer to table directly. In below formula, I have pulled the table from SQL Server
= Table.RowCount(dbo_DimCustomer)*Table.ColumnCount(dbo_DimCustomer)
At the bottom, select Column profiling based on entire data set. Then it will show complete count for the column when you select Column profile.