Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi, can someone help?
I need this DAX calculation, but the other way around:
@ https://community.powerbi.com/t5/Quick-Measures-Gallery/Transitive-Closure/td-p/783828
(Output > DAX > Input)
Thanks for your help!
@Anonymous maybe this is what you want
here is the code
Input = VAR t=
SELECTCOLUMNS (
GENERATE (
GENERATE (
ADDCOLUMNS (
Output,
"@path", SUBSTITUTE ( Output[Destinations], ";", "|" ),
"@n",
LEN ( Output[Destinations] )
- LEN ( SUBSTITUTE ( Output[Destinations], ";", "" ) ) + 1
),
GENERATESERIES ( 1, [@n], 1 )
),
ROW ( "To", PATHITEM ( [@path], [Value] ) )
),
"From", [From],
"To", [To]
)
RETURN
FILTER(t,VAR fr=[From] VAR tt=[To] RETURN COUNTROWS(FILTER(t,[From]=tt||[To]=fr)))
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |