This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
| UniqID | keyID | Source | LinkType | Destination |
| 1 | 101 | A | blocks | C |
| 2 | 101 | A | is blocked by | B |
| 3 | 101 | A | depends | D |
| 4 | 102 | B | is blocked by | D |
| 5 | 102 | B | blocks | A |
| 6 | 103 | C | is blocked by | A |
| 7 | 104 | D | blocks | B |
| 8 | 104 | D | is depended by | E |
I have data in the above format in my database
What I need to show is something like below so that I can use it further as columns in decomposition tree - Is this feasible?
| Source | LinkType 1 | Destination | LinkType 2 | Key | LinkType 3 | Key |
| A | blocks | C | ||||
| A | is blocked by | B | is blocked by | D | ||
| A | depends | D | ||||
| C | is blocked by | A | is blocked by | B | is blocked by | D |
| D | blocks | B | blocks | A | ||
| D | is depended by | E |
Solved! Go to Solution.
Hi @Charuta ,
According to your description, here's my solution.
Create four measures.
Key2 =
MAXX (
FILTER (
ALL ( 'Table' ),
'Table'[Source] = MAX ( 'Table'[Destination] )
&& 'Table'[LinkType] = MAX ( 'Table'[LinkType] )
),
'Table'[Destination]
)
Link Type2 = IF([Key2]=BLANK(),BLANK(),MAX('Table'[LinkType]))Key3 =
MINX (
FILTER (
ALL ( 'Table' ),
'Table'[Source]
= MAXX (
FILTER (
ALL ( 'Table' ),
'Table'[Source] = MAX ( 'Table'[Destination] )
&& 'Table'[LinkType] = MAX ( 'Table'[LinkType] )
),
'Table'[Destination]
)
&& 'Table'[LinkType] = MAX ( 'Table'[LinkType] )
),
'Table'[Destination]
)
Link Type3 = IF([Key3]=BLANK(),BLANK(),MAX('Table'[LinkType]))
Get the correct result.
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Charuta ,
According to your description, here's my solution.
Create four measures.
Key2 =
MAXX (
FILTER (
ALL ( 'Table' ),
'Table'[Source] = MAX ( 'Table'[Destination] )
&& 'Table'[LinkType] = MAX ( 'Table'[LinkType] )
),
'Table'[Destination]
)
Link Type2 = IF([Key2]=BLANK(),BLANK(),MAX('Table'[LinkType]))Key3 =
MINX (
FILTER (
ALL ( 'Table' ),
'Table'[Source]
= MAXX (
FILTER (
ALL ( 'Table' ),
'Table'[Source] = MAX ( 'Table'[Destination] )
&& 'Table'[LinkType] = MAX ( 'Table'[LinkType] )
),
'Table'[Destination]
)
&& 'Table'[LinkType] = MAX ( 'Table'[LinkType] )
),
'Table'[Destination]
)
Link Type3 = IF([Key3]=BLANK(),BLANK(),MAX('Table'[LinkType]))
Get the correct result.
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 37 | |
| 37 | |
| 31 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 66 | |
| 56 | |
| 31 | |
| 27 | |
| 22 |