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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Create a Calculated column for Matrix visual

Hi guys,

I wonder if it is possible or not, so please help to confirm 

I have a data set like that :

PowerBI.PNG

 

 

 

 

 

After using Matrix, I have a result like that:

PowerBI2.PNG

I would like to create a calculated column like below for the Matrix, is that possible?

PowerBI3.PNG

 

Could you please help me? Thank you in advance

1 ACCEPTED SOLUTION
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous ,

For your requirement, I'm afraid that we should create measure to achieve your desired output.

Measure =
VAR day =
    CALCULATE ( SUM ( 'Table'[Hours(Day)] ) )
VAR night =
    CALCULATE ( SUM ( 'Table'[Hours(Night)] ) )
RETURN
    DIVIDE ( day, day + night )

Here is the output. As you can see, if we create the calculated column, the total row will be incorrect.

Capture.PNG

Hope this can help you.

Best  Regards,

Cherry

Community Support Team _ Cherry Gao
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

1 REPLY 1
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous ,

For your requirement, I'm afraid that we should create measure to achieve your desired output.

Measure =
VAR day =
    CALCULATE ( SUM ( 'Table'[Hours(Day)] ) )
VAR night =
    CALCULATE ( SUM ( 'Table'[Hours(Night)] ) )
RETURN
    DIVIDE ( day, day + night )

Here is the output. As you can see, if we create the calculated column, the total row will be incorrect.

Capture.PNG

Hope this can help you.

Best  Regards,

Cherry

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

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.