Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I’m running a compliance project that has work we need to do (WorkToDo column) mapped to each law that requires we do it (Law#1, Law#2, Law#3):
I’d like to generate a table that maps that shows each law mapped to the work required by it:
What’s the best way to do this?
Thanks!
unpiovt the table, then pivot it with another column, maybe like this
NewStep=let a=Table.ReplaceValue(PreviousStepName,"Yes",each [WorkToDo],(x,y,z)=>if x=y then z else null,List.RemoveItems(Table.ColumnNames(PreviousStepName),{"WorkToDo"})) in Table.Pivot(Table.UnpivotOtherColumns(a,{"WorkToDo"},"Laws","Value"),List.Distinct(a[WorkToDo]),"WorkToDo","Value",Text.Combine)