Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
stackedcreative
Frequent Visitor

Grouping DocID Column to show all data points

Hi.  I have a unique DocID column.  There are 4 separate workflows for each DocID (Create, HR Process, Package Selection, Service Process).  Problem is, they are in separate rows.  I need to show them all in the same row.  

 

I tried:

 

- CTRL+click in visual > Group (but it's greyed out)

- Data > Data Groups (but it wants me to group by individual DocIDs)

- Tooltips (but they, again, only show the data for that one workflow, not all

 

For the attached image, I want to show Create Date = X, HR Process Date = Y, Package Selection = Z, Service Process = A) all in the same row.  Basically like a "transpose" function in Excel. 

 

pbi.jpg

5 REPLIES 5
stackedcreative
Frequent Visitor

@DataInsights  Thanks for trying to help.  I've hit so many issues with the data coming in mismatched that I haven't had time to try to get this to work beyond that.  Pivoting does seem the way to go but I get errors.  😞  A colleague had a different idea of a way to display the data so we're going down that path. 

DataInsights
Super User
Super User

@stackedcreative,

 

Try this measure:

 

Concat = CONCATENATEX ( DocTable, DocTable[WFAction], ", " )

 

DataInsights_0-1621610337852.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




You can adjust the second argument to include multiple columns, like this:

 

Concat = CONCATENATEX ( DocTable, DocTable[WFAction] & " = " & DocTable[JoinDate], ", " )

 

DataInsights_1-1621610668828.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




@DataInsights - FINALLY had time to work on this.  I need the data to still be in separate columns.  I ran this and got about 6,000 pieces of data in one... makes it hard to put in something readable.  

 

I tried UNION, have looked into other stuff.  Still perplexed. 

@stackedcreative,

 

Try pivoting the WFAction column in Power Query:

 

DataInsights_0-1622236605757.png

 

DataInsights_1-1622236614063.png

 

DataInsights_2-1622236639695.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.