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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
freelensia
Advocate II
Advocate II

Get only the data body (ignore total row) of structured table into Power Query

Hi,

 

I have a structured table with Total Row turned on like this:

 
 

].png

I tried to get its data body into Power Query. I tried this:

= Excel.CurrentWorkbook(){[Name="TransTbl"]}[Content]

And it got the Total row too.

 

I tried this but got error.

= Excel.CurrentWorkbook(){[Name="TransTbl[#Data]"]}[Content]

 

Edit:

I know we can remove the bottom row but that approach is not versatile. Sometimes this table would have the Total Row and sometimes not. I want to get just the data body, not get everything and remove the parts unwanted.

 

Anybody can help? Thanks so much.

 

7 REPLIES 7
sumanpuvvala
New Member

It took me a half hour to figure out that my reports were showing wrong data because Totals was enabled on the data source. This is a bug. Would be very helpful if someone knows how to get only the Data content of the table!

mahoneypat
Microsoft Employee
Microsoft Employee

Make your second step a Filter step where Ticker <> "Total".  Does that work?

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Thanks @mahoneypat but as I mentioned, I do not want to get the entire table then filter out the rows i don't want. Because this will be used in a function where sometimes the input table will have a total row and sometimes not.

I understand you don't want to remove last row but filtering out the word total should have no impact when it is absent. Can you clarify?

Regards,

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Because there maybe a value with "Total".

As I said I want to use this as a function and I need it to be versatile.

 

And I think it is ridiculous that there is no native way to import only the body of a structured table. Surely Microsoft People thought of this??

Looking at your initial table, you could filter out the rows where Ticker = "Total" and Last Date is null (or one of other columns that don't have content in the Total row).  Also, I suggest you post your proposed functionality as an idea.  They implement the most popular ones.  Until then, you do have some options to proceed with your function I think.

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Sorry guys, none of this meets my requirement. I said I want to get only the data body, not get everything then exclude the total row using a second step. 

 

So I will wait for another answer that can do what I need natively.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.