• 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

How to collapse multiple rows of data coming from the web dynamically,such that its individual rows matches with its ID number in powerquery|Power Query|Excel Forum|My Online Training Hub

You are here: Home / How to collapse multiple rows of data coming from the web dynamically,such that its individual rows matches with its ID number in powerquery|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 QueryHow to collapse multiple rows of da…
sp_PrintTopic sp_TopicIcon
How to collapse multiple rows of data coming from the web dynamically,such that its individual rows matches with its ID number in powerquery
Avatar
Femco Onuch
Member
Members
Level 0
Forum Posts: 21
Member Since:
May 6, 2022
sp_UserOfflineSmall Offline
1
May 6, 2022 - 5:32 am
sp_Permalink sp_Print sp_EditHistory

This is the link to the challenge am facing.

https://ibb.co/3kVkcBL

This dataset are data coming from the web. 

The data set has scattered rows of cells values instead of been in just one record by record basis.

The ids are also repeating as well which is not what i want. 

I want all the ids inline with each records.

The date column will enable me sort the data in descending order so that i can get the latest entry.

The last entry can replace an entry preceding it ,since our organisation what an update to last records if necessary.

 

Now the challeng is  i want to keep some nulls values,because some of this null values are values yet to be filled.if i pivot it i will lost their column values or headers.How do i keep it.

Thank you.

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1518
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
2
May 6, 2022 - 10:11 am
sp_Permalink sp_Print

Hi Femco,

Please provide some sample data so we don't have to recreate it.

Please provide an example (image, table, workbook) of what you want your result to look like.  A written description is open to misinterpretation.

Now the challenge is  i want to keep some nulls values, because some of this null values are values yet to be filled. if i pivot it i will lost their column values or headers.  How do i keep it.

Which null values?  How do we know which ones you want to keep?

regards

Phil

Avatar
Femco Onuch
Member
Members
Level 0
Forum Posts: 21
Member Since:
May 6, 2022
sp_UserOfflineSmall Offline
3
May 6, 2022 - 5:29 pm
sp_Permalink sp_Print sp_EditHistory

@Phil thank you for your response, the dataset are data coming from the web with dates posted.

so what that mean,is that, dates column is sorted in descending order so that the last entry corresonding to same ID  same Column names  updates a data preceding it... 

Note:The powerquery window wont allow me take a screenshot of the all columns with dates .

However, i have managed to screenshot major issues and expected solutions..

 

This link is the challenge i am facing...    Challenge

This is what i want.........Solution

 

There are columns for continous assessment , exam ,total score and  grade.(MATHEMATICS=>Abbreviated: camth ,exammth, mth and mthgrade respectively. ).(ENGLISH=>Abbreviate caeng,exameng,eng and enggrade respectively) .This dataset are imported from the web .The total score has been computed and grade of every students taken from the remote source already.

As they are loaded on powerquery, some column contains null because they are column yet to be filled. I dont what a suituation where some column(s) containing null are removed, because removing the null, means i will lost the column data....

If also, have a zero '0' values from the remote source, powerquery should allow it update records of same ID  and columns  to zero.

 

This is a very complicated task, i pray there is a solution to it.

Thank you.

Avatar
Philip Treacy
Admin
Level 10
Forum Posts: 1518
Member Since:
October 5, 2010
sp_UserOfflineSmall Offline
4
May 7, 2022 - 3:12 pm
sp_Permalink sp_Print

Hi Femco,

Please provide some data to work with.  If you have it in PQ then you can provide it in a workbook for me, rather than me having to type everything out.

Regards

Phil

Avatar
Femco Onuch
Member
Members
Level 0
Forum Posts: 21
Member Since:
May 6, 2022
sp_UserOfflineSmall Offline
5
May 7, 2022 - 11:11 pm
sp_Permalink sp_Print sp_EditHistory

@Phil, alright. Some of the data  contain some sensitive information.

However,i have provided a workbook that suggest similiar challenge ,which can be downloaded from my drive.

https://docs.google.com/spread.....38;sd=true

 

Sheet 1 contains the challenge.  Sheet 2 contains the solutions expected.

Thank you .

Still waiting for  a working solution??

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Velouria, Dario Serrati, Nada Perovic, Andrew Er
Guest(s) 8
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 871
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Raj Mattoo
Mark Luke
terimeri dooriyan
Jack Aston
AndyC
Denise Lloyd
michael serna
mashal sana
Tiffany Kang
Leah Gillmore
Forum Stats:
Groups: 3
Forums: 24
Topics: 6219
Posts: 27279

 

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