April 15, 2021
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?
February 13, 2021
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.