+ Reply to Thread
Results 1 to 6 of 6

Get Data: Table from Another Workbook - Include Total Row

  1. #1
    Registered User
    Join Date
    01-18-2021
    Location
    california, united states
    MS-Off Ver
    MS365 (PC) Version 2209
    Posts
    39

    Get Data: Table from Another Workbook - Include Total Row

    Hi All,

    I'm learning about Queries and Connections and have connected a table from one workbook to another workbook. For some reason, the Total Row from the source workbook is being formatted as a normal row in the destination workbook. Is there any way to have Excel recognize this Total Row from the source and apply it to the destination table? I could manually add the Total Row from the Table Style Options but this would double count.

    Any ideas?

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Get Data: Table from Another Workbook - Include Total Row

    maybe use Table.RemoveLastN(previous step,1) then add Total Row on the result table

  3. #3
    Registered User
    Join Date
    01-18-2021
    Location
    california, united states
    MS-Off Ver
    MS365 (PC) Version 2209
    Posts
    39

    Re: Get Data: Table from Another Workbook - Include Total Row

    Thank you so much for your response!

    I apologize, I am brand new to this and am just learning the syntax. I tried to reproduce your instructions but am getting an error. Here is what I have to start:

    = Table.TransformColumnTypes(MyTable,{{"Column1", type text}, {"Column2", type number}})

    After your instructions:

    = Table.RemoveLastN(TransformColumnTypes(MyTable,{{"Column1", type text}, {"Column2", type number}}),1)

    I am getting an error: Expression.Error: The name 'TransformColumnTypes' wasn't recognized. Make sure it's spelled correctly.

    Any ideas?

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Get Data: Table from Another Workbook - Include Total Row

    you forgot Table.

    Table.RemoveLastN(Table.TransformColumnTypes(MyTable,{{"Column1", type text}, {"Column2", type number}}),1)
    Last edited by sandy666; 09-28-2022 at 03:09 PM.

  5. #5
    Registered User
    Join Date
    01-18-2021
    Location
    california, united states
    MS-Off Ver
    MS365 (PC) Version 2209
    Posts
    39

    Re: Get Data: Table from Another Workbook - Include Total Row

    Thank you so much, this worked perfectly!!!

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Get Data: Table from Another Workbook - Include Total Row

    You are welcome

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Expanding table to include data validation
    By Excelski in forum Excel General
    Replies: 2
    Last Post: 08-10-2018, 02:00 AM
  2. Pivot Table to include data not in main table.
    By ojsevans in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 03-12-2016, 06:23 AM
  3. [SOLVED] Copy data from one table to another and include the related ID
    By Journeyman3000 in forum Access Tables & Databases
    Replies: 2
    Last Post: 11-12-2015, 09:25 PM
  4. [SOLVED] do not include total in pivot table report
    By cfinch100 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-24-2014, 08:57 AM
  5. Pivot Table Total doesn't match data total
    By CNL.Excel in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 10-31-2013, 07:40 PM
  6. Grand total in Pivot Table to include filtered records
    By poorcloud in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 01-09-2013, 02:23 AM
  7. Chart - Plot Series but don't include data in Data Table.
    By Richard Buttrey in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-22-2010, 02:32 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1