• 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

Power Query: source data sheet organised in columns and rows|Power Query|Excel Forum|My Online Training Hub

You are here: Home / Power Query: source data sheet organised in columns and rows|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 QueryPower Query: source data sheet orga…
sp_PrintTopic sp_TopicIcon
Power Query: source data sheet organised in columns and rows
Avatar
Jorge Sa

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
February 27, 2022
sp_UserOfflineSmall Offline
1
February 27, 2022 - 8:24 pm
sp_Permalink sp_Print

Dear all

I am working on a power query to extract data from a source data which contains the person ID on the first 4 columns and the recurrent visits are recorded on column E, organised by rows.

Different persons ID's are organised with the same sequence, on the following rows.

Any help would be greatly appreciated 

Kind regards

WhatsApp-Image-2022-02-25-at-10.27.52-1.jpegImage Enlarger

sp_PlupAttachments Attachments
  • sp_PlupImage WhatsApp-Image-2022-02-25-at-10.27.52-1.jpeg (67 KB)
Avatar
Anders Sehlstedt
Eskilstuna, Sweden

VIP
Members


Trusted Members
Level 3
Forum Posts: 870
Member Since:
December 7, 2016
sp_UserOfflineSmall Offline
2
February 28, 2022 - 3:08 am
sp_Permalink sp_Print

Hello,

What do you want help with? You don’t write what you are trying to do.

Br,
Anders

Avatar
Jorge Sa

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
February 27, 2022
sp_UserOfflineSmall Offline
3
February 28, 2022 - 3:37 am
sp_Permalink sp_Print

Hello Anders

Thank you very much for your reply

I would like to extract/organise the data from that sheet to a power query where the visits on the right table are organised per person, site and agency (first 4 rows)
In other words, patient ABC123 had visits on day 1, 2, 3.

does it make sense?

Jorge

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4443
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
4
February 28, 2022 - 10:30 am
sp_Permalink sp_Print

Hi Jorge,

Please create a mock up of your desired result based on the data in Sheet1. There is a lot of information in this sheet, however from your description you don't really want to retain much of it. To be sure this is the case it's best if you show us what you want.

Thanks,

Mynda

Avatar
Jorge Sa

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
February 27, 2022
sp_UserOfflineSmall Offline
5
February 28, 2022 - 8:03 pm
sp_Permalink sp_Print sp_EditHistory

Hello Mynda

Thank you very much for your reply

I have attached a new file with the desired end result, as a table. 

My apologies if my english explanation wasn't clear

Jorge

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4443
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
6
March 1, 2022 - 8:48 pm
sp_Permalink sp_Print

Hi Jorge,

Please see the file attached. I used the techniques described in this Power Query Unpivot tutorial for repeating rows.

Note: your 'end result' example didn't match your mock data so I'm not sure it's what you want. Please check it carefully.

Mynda

Avatar
Jorge Sa

Active Member
Members
Level 0
Forum Posts: 4
Member Since:
February 27, 2022
sp_UserOfflineSmall Offline
7
March 7, 2022 - 4:44 am
sp_Permalink sp_Print

Hello Mynda!

Thank you very very much for your support!

This was very helpful as you unblocked my mental process to find a way to solve this problem! 🙂

Thank you once again! 🙂

Jorge

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Andy Kirby, Chandler Davis
Guest(s) 9
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:
wahab tunde
Cong Le Duc
Faisal Bashir
Ivica Cvetkovski
Blaine Cox
Shankar Srinivasan
riyepa fdgf
Hannah Cave
Len Matthews
Kristine Arthy
Forum Stats:
Groups: 3
Forums: 24
Topics: 6205
Posts: 27210

 

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