Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. 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)))
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
11 | |
11 | |
10 | |
10 |
User | Count |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |