Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
I have a company ownership hierarchy table, where I need to add a column that indicates the ultimate parent. See example:
I need to calculate ultimate parent column based on the parent company ownership of company a. I have about 100k child companies with unique ids, each of which are associated with various parents with varying levels of ownership.
The idea is to calculate a column that returns the ultimate parent based on the maximum percent ownership of each indiviual child company.
I've looked around the forum and tried a few things with no luck...
Thanks!
Solved! Go to Solution.
For the example given, I would think that the formula would go something along the lines of:
Column =
VAR __tmpTable = FILTER(ALL(Table),[child company] = EARLIER([child company])
VAR __max% = MAXX(__tmpTable,[% ownership by parent])
RETURN
MAXX(FILTER(__tmpTable,[% ownership by parent] = __max%),[parent company])
Something like that.
For the example given, I would think that the formula would go something along the lines of:
Column =
VAR __tmpTable = FILTER(ALL(Table),[child company] = EARLIER([child company])
VAR __max% = MAXX(__tmpTable,[% ownership by parent])
RETURN
MAXX(FILTER(__tmpTable,[% ownership by parent] = __max%),[parent company])
Something like that.
Awesome!! THANKS!! 🙂
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
89 | |
80 | |
65 | |
63 | |
60 |
User | Count |
---|---|
166 | |
114 | |
100 | |
73 | |
66 |