• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Expand calculation table after query refresh|Power Query|Excel Forum|My Online Training Hub

You are here: Home / Expand calculation table after query refresh|Power Query|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumPower QueryExpand calculation table after quer…
sp_PrintTopic sp_TopicIcon
Expand calculation table after query refresh
Avatar
Alexander Folmer

New Member
Members
Level 0
Forum Posts: 2
Member Since:
November 25, 2022
sp_UserOfflineSmall Offline
1
February 24, 2023 - 1:28 am
sp_Permalink sp_Print

Not sure if this is the correct sub-forum, but as it's got to do with queries and data connections I hope it's ok.

An FEA calculation program I am using is creating a lot of output in the form of CSV files. The output consists of nodal results for several cases. I have made a query to import and combine these files into one results table. The next step is to use the values in this table to calculate the final results. For this I am using several formulas (placed in a separate formula table), which are to be used for each line of values in the results table. Finally the results from the formulas must be summarised for each node. For this I am using more formulas in a summary table.

I would like to create a template from this workbook, so it can easily be re-used. For this, I would like to have the formulas table and summary table expand and contract with the results table for each refresh of the query. The formulas table has the same number of rows as the results table, while the summary table has fewer.

While searching I found some things about table connections, but I cannot figure out how to get this to work. I have several similar sheets like this which I like to make into templates, so any help on this would be very welcome.

Avatar
Jessica Stewart
Northern USA
Member
Members


Trusted Members
Level 0
Forum Posts: 202
Member Since:
February 13, 2021
sp_UserOfflineSmall Offline
2
February 25, 2023 - 2:30 am
sp_Permalink sp_Print

Please upload a sample of your worksheet, you will get better and more concise help if we can see and manipulate the work you have.

Avatar
Alexander Folmer

New Member
Members
Level 0
Forum Posts: 2
Member Since:
November 25, 2022
sp_UserOfflineSmall Offline
3
February 28, 2023 - 2:32 am
sp_Permalink sp_Print

Here is an example.

A bit of background information: This workbook is used to calculate the fatigue damage of a structure due to waves. The structure has a defined number of nodes, which changes when a different structure is analysed. There is a certain number of waves heights/periods and directions (load cases) which are applied to the structure, which also differ for each analysis. The columns have no names, because the column headers are different for each load case due to the different wave periods examined.

The worksheets FileData and Table 2-2 contain general information needed for the calculations.

The worksheet SLONG contains the query and one of the tables that needs to expand or contract depending on the number of rows imported with the query. The summary can be found on the worksheet Results Table. This table needs to expand or contract based on the number of nodes found in the query. I know it is possible to add some of the columns of the 2nd table using a query, but not all of them (as far as I know). So I rather keep it like this so others know what is calculated and how. Also I can add the NodeNumber and Location fields to the 2nd table so a Pivot table can be used to get most of the current summary table. Unfortunately I cannot get the lifetime column to work that way (as it uses a defined name), so that needs to contract/expand anyway.

As the number of nodes and load cases is different for each analysis, I would like to know if there is a way to link the tables so that they expand and contract with the query.

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online:
Guest(s) 10
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Ivica Cvetkovski
Blaine Cox
Shankar Srinivasan
riyepa fdgf
Hannah Cave
Len Matthews
Kristine Arthy
Michelle Neven
Andrew Kuhn
Angela Paul
Forum Stats:
Groups: 3
Forums: 24
Topics: 6206
Posts: 27202

 

Member Stats:
Guest Posters: 49
Members: 31875
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.