Forum Discussion
surfboarder1998
3 years agoNew Member
Combine Columns
I currently have a report that lists a primary and support person in two separate columns. It also lists the percent allocation for the primary person and a percent allocation for the support person ...
- 3 years ago
Then I'd flatten the initial table with the code below, rename manually "Lead Name" into just "Name" (it can be also done in [DAX] via SELECTCOLUMNS) and use this flattened table in visuals.
In plain text:
Table = UNION ( SUMMARIZE ( Data, [Work Status], [Segment], [Lead Name], "Role", "Lead", "Allocation", SUM ( Data[Lead Allocation] ) ), FILTER ( SUMMARIZE ( Data, [Work Status], [Segment], [Support Name], "Role", "Support", "Allocation", SUM ( Data[Support Allocation] ) ), NOT ISBLANK ( [Support Name] ) ) )Best Regards,
Alexander