Forum Discussion
Creating a path exploration visual in Power BI like that that exists in GA4 (decision tree)
- 2 years ago
The fix was creating a ranking based on a screen view event then creating 5 seperate calculated columns that identified the 1st, 2nd, 3rd... event as such. The second event needs to be inline with the non blank of the first event otherwise path exploration does not work. see below dax:
1st event = IF('4. Fact_events'[RankScreenViews]=1,'4. Fact_events'[screen_name],BLANK())2nd event =VAR FirstScreenViewValue = '4. Fact_events'[1st event]VAR CurrentSessionID = '4. Fact_events'[session_id]VAR SecondScreenViewValue =CALCULATE(MAX('4. Fact_events'[screen_name]),FILTER('4. Fact_events','4. Fact_events'[event_name] = "screen_view" &&'4. Fact_events'[RankScreenViews] = 2 &&'4. Fact_events'[session_id] = CurrentSessionID))RETURNIF(ISBLANK(FirstScreenViewValue),BLANK(),SecondScreenViewValue)
Use a Decomposition Tree visual or a Sankey visual.
lbendlin Decomposition tree won't work. you would need a column for first, second, third activity? same applies to a Sankey visual
- lbendlin2 years ago
Super User
No, Sankey works different. Only needs two columns.
- stino1232 years ago
Helper II
lbendlin This does not work because again you would need a measure for each next measure. Like the tree diagram it needs a new category each time...
- stino1232 years ago
Helper II
Further, You can have a duplicate dimension in a sankey visual which would be needed if you need to see each event.