• 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

Creating a report with a group by column as a page header|Power Query|Excel Forum|My Online Training Hub

You are here: Home / Creating a report with a group by column as a page header|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 QueryCreating a report with a group by c…
sp_PrintTopic sp_TopicIcon
Creating a report with a group by column as a page header
Avatar
Steve Hurst

New Member
Members
Level 0
Forum Posts: 1
Member Since:
May 20, 2020
sp_UserOfflineSmall Offline
1
May 20, 2020 - 9:39 pm
sp_Permalink sp_Print

Hi

I am new to this so excuse! I have selected some data from an external data source via Power Query "Capacity Report" but I now need to format this data into a report. I have a column "resource_id" which in this data has three values - 1, 2 and 14 (each is a resource). I want to be able to produce a page that has a header record that is along the lines of:

Capacity Report for resource 1

Followed by the data for resource1 (in this case 10 records for different dates) then repeat for resource 2 etc. The final out to then look like:

Capacity Report for resource 1

18/05/2020 a b c d etc
19/05/2020 a b c d etc
etc

Capacity report for resource 2

18/05/2020 a b c d etc
19/05/2020 a b c d etc
etc

I have tried creating a pivot table (see sheet 5) and whilst it has the data layout correctly, I need the resource group to be expanded for all resouces and not by a filter.

I also need to do a calculation at the header level which is based on an average of one column - so sum one column and divide by the number of records returned in the group.

I know these may be basic questions but just need some pointers. Is it possible to reference a cell from a power query in the final sheet?

Thanks for any assistance.

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4438
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
2
May 21, 2020 - 9:15 am
sp_Permalink sp_Print

Hi Steve,

Welcome to our forum! Thanks for sharing your file. You can automatically generate a sheet for each resource ID using the "Show Report Filter Pages" tool as explained here: Extract sub-sets of data using a Pivot Table Report.

Yes, you can reference cells in the worksheet in Power Query, simply format the cells in a table, and load it to Power Query as a separate query, which you can then reference.

The average calculation may be possible in a PivotTable by setting the calculation to 'Average'. You can try it by right-clicking the value field in the PivotTable > Summarize values by > Average. Note: you can add the same field to the values area multiple times and set each one to a different calculation.

I hope that points you in the right direction. If the average calculation isn't what you mean, please provide an example in your file so we can see how you would calculate it manually.

Mynda

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Andy Kirby, Alison West, Jill Niemeier, Laxmi Praveen
Guest(s) 11
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:
yashal minahil
Oluwadamilola Ogun
Yannik H
dectator mang
Francis Drouillard
Orlando Inocente
Jovitha Clemence
Maloxat Axmatovna
Ricardo Freitas
Marko Meglic
Forum Stats:
Groups: 3
Forums: 24
Topics: 6201
Posts: 27185

 

Member Stats:
Guest Posters: 49
Members: 31861
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.