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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

How can I align column subtotals in a powerbi table to the left?

 
Hi I'm looking for a way to left align the totals column which by default power bi attached photo (In a table)
Captura111.PNG
1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your description, there isn't a simple way to move the total column to the left now. However there is a workaround, instead of using automatic subtotals, you create "Total" rows in your data tables. Here's my solution.

Sample table:

vkalyjmsft_0-1664522186577.png

1.Create a new table.

Table 2 =
VAR _total =
    ROW ( "Year", " Total", "Value", SUM ( 'Table'[Value] ) )
RETURN
    UNION ( 'Table', _total )

Result:

vkalyjmsft_1-1664522210793.png

2. As we can see, I added one row at the end of my original data table, and give them “ Total” as the Year value. The blank character before the “Total” can make it become the first column in the Matrix because the columns in the Matrix of Power BI are sorted by the first character ascending.

3. Get the result.

vkalyjmsft_2-1664522337343.png

I attach my sample below for your reference.

 

Best Regards,
Community Support Team _ kalyj

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

3 REPLIES 3
DataPhil
New Member

Found an easier way under:

Format Pane > Specific Column

1) select Apply to total toggle

2) select Alignment > left

Align left totalsAlign left totals

v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your description, there isn't a simple way to move the total column to the left now. However there is a workaround, instead of using automatic subtotals, you create "Total" rows in your data tables. Here's my solution.

Sample table:

vkalyjmsft_0-1664522186577.png

1.Create a new table.

Table 2 =
VAR _total =
    ROW ( "Year", " Total", "Value", SUM ( 'Table'[Value] ) )
RETURN
    UNION ( 'Table', _total )

Result:

vkalyjmsft_1-1664522210793.png

2. As we can see, I added one row at the end of my original data table, and give them “ Total” as the Year value. The blank character before the “Total” can make it become the first column in the Matrix because the columns in the Matrix of Power BI are sorted by the first character ascending.

3. Get the result.

vkalyjmsft_2-1664522337343.png

I attach my sample below for your reference.

 

Best Regards,
Community Support Team _ kalyj

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

 

amitchandak
Super User
Super User

@Anonymous , do it for Specific column

 

amitchandak_0-1664452141998.png

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.