Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
I am trying to use the PATH function in power bi but my data uses dummy values to denote when the top level parent.
For example,
child parent
1 0
2 1
3 2
Here, 0th id doesn't exist. Now, this doesn't always have to be 0. It can be any number as parent id which is used as dummy where the hierachy is at the top and the parent with whichever id it is doesn't exist.
Any way to go pass this issue?
My object is to see the top parent here which would be 1 and not 0 (0 doesn't exist anyways)
Solved! Go to Solution.
hello @afaro
looks like you need to do make rank or index to find 2nd top.
Here i modify your sample data.
if the non-exist value is zero or blank, RANKX will count it as 1.
So the 2nd top of your data will be the data with rank greater than 1.
i.e to find 2nd top most parent will be:
it will calculate the minimum parent value with rank greater than one.
Hope this will help you.
Thank you.
hello @afaro
looks like you need to do make rank or index to find 2nd top.
Here i modify your sample data.
if the non-exist value is zero or blank, RANKX will count it as 1.
So the 2nd top of your data will be the data with rank greater than 1.
i.e to find 2nd top most parent will be:
it will calculate the minimum parent value with rank greater than one.
Hope this will help you.
Thank you.
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
17 | |
14 | |
13 | |
12 | |
10 |
User | Count |
---|---|
11 | |
10 | |
6 | |
6 | |
6 |