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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
afrutos
Resolver I
Resolver I

SHOW TOTAL COLUMN ON FIRST POSITION IN MATRIX

Hi everyone ,

Is there any way to move the total column, so that instead of being on the right, it is on the left?
I can't find any information

 

Thanks

 

afrutos_0-1669388078396.png

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I tried to create a sample pbix file to demonstrate what is an alternative way.

Please check the below picture and the attached pbix file.

I am not sure how your datamodel looks like, but I hope the below can provide some ideas on how to create a solution for your datamodel.

 

Jihwan_Kim_0-1669389308975.png

 

Jihwan_Kim_1-1669389480000.png

 

 

 

Sales total measure: =
IF (
    SELECTEDVALUE ( Country[Country] ) = "Total",
    CALCULATE ( SUM ( Data[Sales] ), ALL ( Country ) ),
    SUM ( Data[Sales] )
)

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

View solution in original post

4 REPLIES 4
Jihwan_Kim
Super User
Super User

Hi,

I tried to create a sample pbix file to demonstrate what is an alternative way.

Please check the below picture and the attached pbix file.

I am not sure how your datamodel looks like, but I hope the below can provide some ideas on how to create a solution for your datamodel.

 

Jihwan_Kim_0-1669389308975.png

 

Jihwan_Kim_1-1669389480000.png

 

 

 

Sales total measure: =
IF (
    SELECTEDVALUE ( Country[Country] ) = "Total",
    CALCULATE ( SUM ( Data[Sales] ), ALL ( Country ) ),
    SUM ( Data[Sales] )
)

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

It will only work if one is not using any field in columns section of matrix visual. I have a field added in columns and few fields added in rows which is been used for drill down in proper heirarchy. Using different kinds of measures in values. 
When using columns for the specific visual column subtotal is generated and you will have Total section which displays all the measures under it along with other column headers. Moving column subtotal to front will not work if we are using columns in matrix visual.

Thanks works perectly!

@afrutos and @Jihwan_Kim 

The solution suggested above won't work with complex data model it seems. I am using matric visual in report which is using three fields in rows for drill down and in columns am using a field and using different measures in values but to create the custom measure as suggested above will not work properly?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.