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
Anonymous
Not applicable

Calculate Rows in a Customized Matrix

Hi, 

 

I'm generating a matrix using all customized columns , one column is one measure. And I take rows headers as Department. 

 

Usually , I can do some measure between columns based on these departments. But how can I mwasure between rows based on each columns (each measure).

1.png

I want to add some calculated rows like measure1 = total - Dept. 1

 

Hope anyone can help here. 

 

Thanks!

2 REPLIES 2
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

It doesn't support to add measures/columns in rows the same as in columns.

You could change the "Total" field per your requirement.

 

For example, to change the total to show the totals except the "Dept.1",

Create a measure as below

Measure1 hasonevalue =
IF (
HASONEVALUE ( 'Table'[Department] ),
'Table'[Actual 2018],
SUMX (
FILTER ( 'Table', 'Table'[Department] <> "Dept.1" ),
'Table'[Actual 2018]
)
)

Capture11.JPG

 

Best Regards
Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi @v-juanli-msft 

Thanks for your suggestion. I know it can be displayed to have a new column with the required total. But the values listed are duplicated except the total. it's really not a healthy report.

What I want to achieve is to have two total value rows in the bottom of the table. one is total, another is total without Dept.1.

I tried to group all except Dept. 1 to have a subtotal without Dept. 1 , but the thing is I have two levels of group already. If the group level is deep , the structure of data report would not be friendly displaying - refer to below screen. The single would also be grouped with several levels. 

 

So I'm curious about how we can make the report as two rows in the bottom , one is total , another is total without Dept. 1.

1.png

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.