Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hello, I’m very new to Power BI and have spent many hour trying to solve this problem in both DAX and Power Query.
This is an example of the table I have. The idea is to count how many times the parent project occurs in the list of child projects.
Then add a column and mark with "A" for the rows where the parent does not appear.
Then in the next column repeat the logic above but exclude the rows containing "A" rows return with 0 this time marked with "B"
Repeat until all rows marked.
I have successfully completed the table up to the first pass and Sequence 1 (A) in both DAX and Power Query but am stuck on evaluating the rows excluding "A" to achieve the next pass.
I know this approach has limitations in terms of coping when more rows are added, the ultimate goal is to be able to determine and return the sequence using just one or two columns.
I appreciate any help that can be given.
Apologies if there is a better way to provide data. This is my first post.
Sample Data
Parent Project Child Project
Item 2 Item 1
Item 2 Item 7
Item 3 Item 2
Item 4 Item 6
Item 5 Item 6
Item 6 Item 8
Item 6 Item 3
expected outcome
Parent Project Child Project Pass 1 Sequence A Pass 2 Sequence B Pass 3 Sequence C Pass 4 Sequence D
Item 2 Item 1 1 1 1 0 D
Item 2 Item 7 1 1 1 0 D
Item 3 Item 2 1 1 0 C
Item 4 Item 6 0 A
Item 5 Item 6 0 A
Item 6 Item 8 2 0 B
Item 6 Item 3 2 0 B
Ultimate outcome (if possible)
Parent Project Child Project Sequence
Item 2 Item 1 D
Item 2 Item 7 D
Item 3 Item 2 C
Item 4 Item 6 A
Item 5 Item 6 A
Item 6 Item 8 B
Item 6 Item 3 B
Thank you.
Sounds like a standard "Filtering up" pattern. Please provide sample data in usable format (not as a picture) and show the expected outcome.
User | Count |
---|---|
21 | |
20 | |
14 | |
10 | |
8 |
User | Count |
---|---|
30 | |
28 | |
13 | |
12 | |
11 |