• 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
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Organizational Table - Same Org Code Tied to Multiple Organization Levels |Power Query|Excel Forum|My Online Training Hub

You are here: Home / Organizational Table - Same Org Code Tied to Multiple Organization Levels |Power Query|Excel Forum|My Online Training Hub

vba course banner

Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search
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 QueryOrganizational Table - Same Org Cod…
sp_PrintTopic sp_TopicIcon
Organizational Table - Same Org Code Tied to Multiple Organization Levels
Avatar
Sid Jones
Member
Members
Level 0
Forum Posts: 11
Member Since:
April 15, 2021
sp_UserOfflineSmall Offline
1
August 26, 2022 - 2:17 am
sp_Permalink sp_Print

Afternoon, 

Hoping someone may be able to either 1) tell me I don't need to do anything or 2) point me in the right direction of sorting/cleaning an organized table in Power Query for a reporting model I'm creating.   

Within the mode, I have a "Contracts" and "Purchase Order" facts table.  Each table contains columns that identify associated organizational company structures (business sector (sector), operating group (OG), division (div), director (dir), and organizational code (org code); see the table below (shortened, actually contains 200+ org codes). 

The Org Code is unique, so it can certainly be a key for that dim table.  However, in my fact tables, the same code may show up hundreds to thousands of times, which causes issues when trying to report on the various organization structures (drill downs). 

Should I be looking to unpivot the table in some fashion to create a unique identifier for, say, Sector, OG, Div, DIr, and tie that to the org code?

 

Sector OG DIV DIR Org Code
SCT2G1 OG61F1 OG61D1 OG61C1 33364
SCT2G1 OG61F1 OG61D1 OG61C1 33365
SCT2G1 OG61F1 OG61D1 OG61C1 33654
SCT2G1 OG63F1 OG63D1 OG63C1 33373
SCT2G1 OG63F1 OG63D1 OG63C1 33374
SCT2G1 OG63F1 OG63D1 OG63C1 33657
SCT2G1 OG63F1 OG63D1 OG63C1 33658
SCT2G1 OG63F1 OG63D1 OG63C1 33671
SCT2G1 OG63F1 OG63D1 OG63C1 33368
SCT2G1 OG63F1 OG63D1 OG63C1 33369
SCT2G1 OG63F1 OG63D1 OG63C1 33720

  

Avatar
Jessica Stewart
Northern USA
Member
Members


Trusted Members
Level 0
Forum Posts: 216
Member Since:
February 13, 2021
sp_UserOfflineSmall Offline
2
August 26, 2022 - 5:38 am
sp_Permalink sp_Print

I'm having a hard time visualizing what you are asking. Can you please upload a small, anonymized sample of your workbook illustrating the issue and the desired outcome? My thought, without seeing it, is to remove duplicates; but I have a feeling I'm missing something important.

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Andrew Wilkie, Sue Hammond, Malcolm Sawyer
Guest(s) 11
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 873
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 222
Jessica Stewart: 216
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Melanie Ford
Isaac Felbah
Adele Glover
Hitesh Asrani
Rohan Abraham
Anthony van Riessen
Erlinda Eloriaga
Abisola Ogundele
MARTYN STERRY
Rahim Lakhani
Forum Stats:
Groups: 3
Forums: 24
Topics: 6355
Posts: 27792

 

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