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.
Background: I have a table which contains the code breach incidents of banks. Each line represents a incident, along with cause of incident, identification, remediation and corrective action, customer impact and financial impact as below.
Bank | Ref_Key(PK) | Incident Description | Cause | Identification Method | Remediation | Corrective Action | Customer Impact | Financial impact | Code chapter breached (1) | No of breaches of Code chapter (1) | Code chapter breached (2) | Number of breaches of code chapter (2) | Code chapter breached (3) | Number of breaches of code chapter (3) |
Bank A | 1 | Free text field(abc, xyz) | Human | Complaints | Reimbursment | Coaching | 1 | 500 | Chapter 2 | 1 | Chapter 10 | 1 | ||
Bank A | 2 | Free text field(abc, xyz) | System | Customer | Apology | system fix | 5000 | 780000 | Chapter 5 | 10 | ||||
Bank C | 3 | Free text field(abc, xyz) | Human | Internal Audit | Not necessary | Coaching | 5 | 779981 | Chapter 6 | 5 | Chapter 9 | 1 | Chapter 3 | 1 |
Bank C | 4 | Free text field(abc, xyz) | third party | Complaints | Not necessary | Training | 8 | 15151 | Chapter 7 | 1 | ||||
Bank B | 5 | Free text field(abc, xyz) | System | Customer | Refund | system fix | 99 | 11451151 | Chapter 9 | 2 | Chapter 2 | 1 |
part_id | chapter_id |
Part 1 | 01 |
Part 1 | 02 |
Part 2 | 03 |
Part 2 | 04 |
Part 2 | 05 |
Part 2 | 06 |
Part 2 | 07 |
Part 3 | 08 |
Part 3 | 09 |
Part 3 | 10 |
Part 3 | 11 |
Part 3 | 12 |
Part 4 | 13 |
Part 4 | 14 |
Ref_Key | Code chapter breached | No of breaches |
1 | Chapter 2 | 1 |
1 | Chapter 10 | 1 |
2 | Chapter 5 | 10 |
3 | Chapter 6 | 5 |
3 | Chapter 9 | 1 |
3 | Chapter 3 | 1 |
4 | Chapter 7 | 1 |
5 | Chapter 9 | 2 |
5 | Chapter 2 | 1 |
Solved! Go to Solution.
NewStep= #table({"Ref_ID","Code chapter breached","No of breaches"},List.TransformMany(Table.ToRows(PreviousStepName),each List.Select(List.Split(List.Skip(_,9),2),each Text.Trim(_{0}??"")<>""),(x,y)=>{x{1}}&y))
NewStep= #table({"Ref_ID","Code chapter breached","No of breaches"},List.TransformMany(Table.ToRows(PreviousStepName),each List.Select(List.Split(List.Skip(_,9),2),each Text.Trim(_{0}??"")<>""),(x,y)=>{x{1}}&y))
Thanks, I appreacite it very much! It worked worked like a charm. Honestly speaking I am having a little difficulty to understand the step (way outside of my current knowledge of M)
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.