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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Yumikang
Helper II
Helper II

Why do two metrics appear in each column of my matrix?

Dear all,

I desperately need everyone's help, it's been bothering me for a long time.

Question 1: Why do two metric values appear in each column of my matrix?

Yumikang_0-1741761438494.png

Am I setting up the matrix correctly this way?

Question 2: Why is the last total row of my OT, a metric, not equal to the sum of the OT of each row in the matrix?

Yumikang_1-1741761525375.png

Here are some of my metric DAX formulas:

1、

OT = SUMX(
    VALUES('date'[yearmonth]),
    VAR MonthHours = CALCULATE([total])
    VAR MonthStd = CALCULATE([ST])
    RETURN
    IF(MonthHours > MonthStd, MonthHours - MonthStd, 0)
)
2、
total =
CALCULATE(
    SUM('2025'[time1]),
    CROSSFILTER('date'[yearweek], 'time'[time], BOTH)  
)
3、
ST=
VAR SelectedMonth = SELECTEDVALUE('日期表'[月])
RETURN CALCULATE(
    VALUES('2025ST'[STTIME]),
    FILTER('2025ST', '2025STTIME'[MONTH] = SelectedMonth)
)
There is an urgent need for everyone's help.
 

 

 

7 REPLIES 7
v-sdhruv
Community Support
Community Support

Hi @Yumikang ,
I hope the issue was resolved. If the explaination has helped to answer your query, then please mark it "Accept as Solution" so that other users can benefit from it.
If you still need assistance, please feel to reach out.
Thank you for being a part of this community.

v-sdhruv
Community Support
Community Support

Hi @Yumikang ,
I hope the issue was resolved. If the explaination has helped to answer your query, then please mark it "Accept as Solution" so that other users can benefit from it.
If you still need assistance, please feel to reach out.
Thank you for being a part of this community.

v-sdhruv
Community Support
Community Support

Hi @Yumikang ,
I hope the issue was resolved. If the explaination has helped to answer your query, then please mark it "Accept as Solution" so that other users can benefit from it.
Thank you!

SamanthaPuaXY
Helper II
Helper II

Hi @Yumikang ,

Unfortunately that's the constraint of using the matrix visual. You can consider using a table visual or having 2 matrix to represent what you need.

 

Hope this helps

Yumikang
Helper II
Helper II

Q2 have solved,please help Q1.

SamanthaPuaXY
Helper II
Helper II

Hi @Yumikang 

 

In your visual, you are specifying 2columns hence it's showing for all columns. You can remove to show which is the one that you want to show.

SamanthaPuaXY_0-1741763303459.png

Please do give a kudos if it solves the problem. thanks!

thanks.but I need to show the OT on the far right side of the matrix, just not in every column.

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.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors