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
GentleGrid
New Member

Putting column data in rows for table

I have a dim table with columns and values like this:

GentleGrid_3-1713318812936.png

 

I am trying to get a visualization table that looks like this:

GentleGrid_2-1713318695425.png

When the user selects a project with the slicer, the table should change to the project that has been selected.

 

Is there a standard way to handle this in Power BI? I know I could unpivot the dim table, but this would obviously screw up the data relationships.

 

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@GentleGrid 

here is a workaround for you

create a new table

11.PNG

 

column 1 sort by sort column

 

then create a measure

Measure =
SWITCH(SELECTEDVALUE('Table (2)'[Column1]),"Project",max('Table'[name]),"Size",max('Table'[size]),"Owner",max('Table'[owner]),"Weight",max('Table'[weight]),"Dimension",max('Table'[dimensions]))
11.PNG
 
pls see the attachment below
 

 

 





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

Proud to be a Super User!




View solution in original post

3 REPLIES 3
ryan_mayu
Super User
Super User

@GentleGrid 

here is a workaround for you

create a new table

11.PNG

 

column 1 sort by sort column

 

then create a measure

Measure =
SWITCH(SELECTEDVALUE('Table (2)'[Column1]),"Project",max('Table'[name]),"Size",max('Table'[size]),"Owner",max('Table'[owner]),"Weight",max('Table'[weight]),"Dimension",max('Table'[dimensions]))
11.PNG
 
pls see the attachment below
 

 

 





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

Proud to be a Super User!




That worked, thanks a lot!

you are welcome





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.