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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
GowthamK66
Frequent Visitor

How to create this table(Transpose)

Expectation: all the table measures will be in row-wise below the metrics column, so how we can do this the data source is in the SSMS server
L4 is Last four week, L13,L26,L52 Should come as each column
GowthamK66_0-1726212423035.png

 

Reality: what we can actually do in power BI is this below

GowthamK66_1-1726212552992.png

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @GowthamK66 


Please try this:

Here I have the sample data:

vzhengdxumsft_2-1726471557184.png

You can create a matrix and put the category column on the Columns box:

vzhengdxumsft_2-1728291887107.png

 

And open the Switch values in row groups rather that columns:

vzhengdxumsft_1-1728291793712.png

The result is as follow:

vzhengdxumsft_3-1728291909815.png

 

And here's another workaround:

Add a new table:

 

 

Table 2 = {"Measure1","Measure2","Measure3"}

 

 

vzhengdxumsft_3-1726471581824.png

Then add a new measure:

 

 

Measure = 
VAR _Values = SELECTEDVALUE('Table 2'[Value])
RETURN 
SWITCH(
    _Values,
    "Measure1",[Measure1],
    "Measure2",[Measure2],
    "Measure3",[Measure3]
)

 

 

Finally, create a matrix with these fields:

vzhengdxumsft_5-1726471699847.png

The result is as follow:

vzhengdxumsft_4-1726471635528.png

 

 

 

Best Regards

Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hi @GowthamK66 


Please try this:

Here I have the sample data:

vzhengdxumsft_2-1726471557184.png

You can create a matrix and put the category column on the Columns box:

vzhengdxumsft_2-1728291887107.png

 

And open the Switch values in row groups rather that columns:

vzhengdxumsft_1-1728291793712.png

The result is as follow:

vzhengdxumsft_3-1728291909815.png

 

And here's another workaround:

Add a new table:

 

 

Table 2 = {"Measure1","Measure2","Measure3"}

 

 

vzhengdxumsft_3-1726471581824.png

Then add a new measure:

 

 

Measure = 
VAR _Values = SELECTEDVALUE('Table 2'[Value])
RETURN 
SWITCH(
    _Values,
    "Measure1",[Measure1],
    "Measure2",[Measure2],
    "Measure3",[Measure3]
)

 

 

Finally, create a matrix with these fields:

vzhengdxumsft_5-1726471699847.png

The result is as follow:

vzhengdxumsft_4-1726471635528.png

 

 

 

Best Regards

Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

GowthamK66
Frequent Visitor

the screenshot is from power bi Visuals, I do not have a physical table like that

GowthamK66
Frequent Visitor

The thing is all the measures should be placed in the Row level but in Power BI we can't do that, we can place the measure only in Values not in Rows😥

GowthamK66_0-1726463808178.png

 

Anonymous
Not applicable

Hi @GowthamK66 

 

Please try this:

Click the Transform data in the Hoem pane to use the PowerQuery:

vzhengdxumsft_0-1726454777057.png

Then in the Transform Pane, you can use the Transpose feature:

vzhengdxumsft_1-1726454829156.png

Here I create a set of sample:

vzhengdxumsft_2-1726454876478.png

Hold down the Ctrl key and select all the columns and click the Transpose, then click the Use First Row as Headers in the Home pane, the result is as follow:

vzhengdxumsft_3-1726455005477.png

 

 

Best Regards

Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

elitesmitpatel
Solution Supplier
Solution Supplier

Please share the dummy PBIX File

 

i dont have dummy file

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.