Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hi everyone!
I am trying to show rows recursively in my table visual. The table is controlled by a slicer. My data looks like this:
I am using a slicer to show values in the table, the slicer is associated with the first family value `G3MS`. So only first row is getting displayed in the visual. I want to recursively search for subsequent replacements and display the rows as shown.
@Greg_Deckler , a great solution in Power BI Desktop with DAX.
I reviewed this case was created in Power Query forum, so I would like to provide a solution in Power Query.
Here's the steps:
1.Add an index column.
2.Add a custom column.
3.Expand the values and you can see the result.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
But this index method may only work if there's a single sequence right? What if I have more families with corresponding replacements?
Really appreciate your help!
I used this function:
= (x as text)=>
let a= if List.PositionOf(ModuleList, Text.AfterDelimiter(x, ",", {0, RelativePosition.FromEnd}))<0
then x
else @GetHierarchy(x & "," & ReplacementList{List.PositionOf(ModuleList, Text.AfterDelimiter(x, ",", {0, RelativePosition.FromEnd}))})
in a
This seemed to solve the problem 80%
@Anonymous Do you have anything that you can use to define "later" or "earlier" in your table, like a date or index? If so, you can use the MTBF pattern. See my article on Mean Time Between Failure (MTBF) which uses EARLIER: http://community.powerbi.com/t5/Community-Blog/Mean-Time-Between-Failure-MTBF-and-Power-BI/ba-p/3395....
The basic pattern is:
Column =
VAR __Current = [Value]
VAR __PreviousDate = MAXX(FILTER('Table','Table'[Date] < EARLIER('Table'[Date])),[Date])
VAR __Previous = MAXX(FILTER('Table',[Date]=__PreviousDate),[Value])
RETURN
( __Current - __Previous ) * 1.
I do have date columns (the date on which the family was replaced). I will try this solution out!
Thanks!!
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 1 |
| User | Count |
|---|---|
| 11 | |
| 11 | |
| 5 | |
| 4 | |
| 3 |