Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
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)))
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.