This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
| 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 May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
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 |
|---|---|
| 32 | |
| 26 | |
| 25 | |
| 24 | |
| 15 |
| User | Count |
|---|---|
| 62 | |
| 48 | |
| 27 | |
| 21 | |
| 20 |