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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.