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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Igorpole
Helper I
Helper I

Get-PowerBITable - How to get number of rows, columns?

Hey Community,

 

By default when I write in PowerShell smth like..:
Get-PowerBITable -DatasetId [id] -Name [tablename]

I get such a view. As you can see it doesn't contain any useful info.

Igorpole_0-1654003326944.png


Is it possible to get info about columns etc?

6 REPLIES 6
v-yiruan-msft
Community Support
Community Support

Hi  @Igorpole ,

Whether your problem has been resolved? If yes, could you please mark the helpful post as Answered? It will help the others in the community find the solution easily if they face the same problem as yours. Thank you.

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

It was not resolved at all

v-yiruan-msft
Community Support
Community Support

Hi @Igorpole ,

First, please make sure that the corresponding command is provided with the correct [Dataset ID] and [Table name], you can refer to the following links to get the dataset ID.

How to find a Dataset ID in Power BI

HOW TO GET THE WORKSPACE GROUPID AND DATASETID FROM THE URL IN POWER BI

yingyinr_0-1654235638208.png

Get-PowerBITable

Get-PowerBITable -DatasetId eed49d27-8e3c-424d-9342-c6b3ca6db64d

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

It's correct, of course. My question was not about how to get correct dataset id )

Hi @Igorpole ,

Is the dataset you want to get table information from a Push API dataset? The command Get-PowerBITable calls the following REST API to get the list of tables involved in a particular dataset. If the dataset you are referencing is not a Push API dataset, this will not return any results...

Push Datasets - Datasets GetTables

Push Datasets - Datasets GetTablesInGroup

 

Manage Power BI Dataset with PowerShell

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Yes, of course it's a push dataset. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.