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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
viswaaa
Helper IV
Helper IV

Show measures in first place of rows

Hi ALl,

 

I have a matrix chart and I kept country in rows ,year ij columns and measure values in values and move them to rows as per my requirement.
But I need to get measure values as before country.

Please suggest how to get this

 

viswaaa_0-1738153312805.png

 

10 REPLIES 10
Anonymous
Not applicable

Hi

 

Please do below steps to get required results.

 

1. Create 1 Column Table  with sales & profit text in column below is formula.

Sales_Profit_Table =
               {
                      ("Sales"),
                      ("Profit")
               }
 

2. Create Table using below Dax Formula.

Test_Tbl =
ADDCOLUMNS(
            CROSSJOIN(Sales_Profit_Table,Sales),
            "SUM",IF(Sales_Profit_Table[Value]="Sales",CALCULATE([Total Sales]),CALCULATE([Total Profits])))
 
2. Then Put columns from this Test_Tbl into Matrix Visual
    Rows :-  Values, Country
    Columns :- Year
    Values :- Sales measure
 
4) Select Matrix Visual & Goto Row Header. Stepped Layout to OFF
 
Thanks & Regards
Pravin  Angane
 
mh2587
Super User
Super User

Just enable the show on rows option under format tab

Capture3.JPG


Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



Uzi2019
Super User
Super User

Hi @viswaaa 

 

Please share the sample data...

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Here it is

 

CountryYearSalesProfit
USA201710020
USA201820030
UK201730020
UK201840050
Bibiano_Geraldo
Super User
Super User

Hi @viswaaa ,

Can you share the realy picture of your Matrix and sample data?

Hi @Bibiano_Geraldo 

Here it is

viswaaa_0-1738157529962.png

 

Sample Data :

 

CountryYearSalesProfit
USA201710020
USA201820030
UK201730020
UK201840050

Hi, 

I just placed the field as you done, and my output look like this:

Bibiano_Geraldo_0-1738158284688.png

 

Hi @Bibiano_Geraldo ,

 

You need to go to formatting and select switch values to rows option as below.

viswaaa_1-1738158431062.png

 

 

DataNinja777
Super User
Super User

Hi @viswaaa ,

 

You can achieve your desired output by selecting "Tabular" instead of "Compact" in the Layout and style presets section of the Visualizations pane in your Matrix visual.

 

DataNinja777_0-1738153841416.png

 

Best regards,

 

Hi @DataNinja777 ,

 

But I need to get my measures in first place of rows.

 

like below

 

viswaaa_0-1738154736590.png

For now I am getting country in first place

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.