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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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

Click here to schedule a short Teams meeting to discuss your question.

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

Click here to schedule a short Teams meeting to discuss your question.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.