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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
TK_FPA
Frequent Visitor

Create Calculated Columns from matrix's column

I have created a matrix table below (sorry that I have to cover the data). I would like to include the following new columns into the matrix table at the end of the table. (Entity = Subsidiary)
- Total Entity = Entity 1 + Entity 2 + Entity 3
- Adj Entity
- Total all = Total Entity + Adj Entity

 ** Adj Entity currently is also one of the subsidiary in the data set.

TK_FPA_2-1654051576205.png

So the end result will be like 

TK_FPA_3-1654051861056.png

Basically I would like to create new "calculated column" that derived from the columns from the matrix. Also I cannot create another measure and drop it into visual - Values, cause it will create 2 amounts for each entities. I just need the 3 columns at the end of the matrix. 

I thought of duplicate the same fact table, change the subsidiary value to Total Entity (exclude Adj Entity) and append the table to the existing table. This will fake the "Total Entity" as one of the subsidiary therefore archieve the result that I want. However, I do not really wish to do this, as the appended fact table will be very big which consume the space / memory. 

 

Hope to seek some helps here. Thank you.

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @TK_FPA ,

There is no more elegant way to implement your requirement, you can refer to this post below to see if the solution can be used as an alternative...

First, you can create three measures as below:

Measure1 =
IF (
    ISINSCOPE ( 'Table'[Financial Year] ) || ISINSCOPE ( 'Table'[Subsidiary] ),
    BLANK (),
    [Total Entity]
)
Measure2 =
IF (
    ISINSCOPE ( 'Table'[Financial Year] ) || ISINSCOPE ( 'Table'[Subsidiary] ),
    BLANK (),
    [Adj Entity]
)
Measure3 =
IF (
    ISINSCOPE ( 'Table'[Financial Year] ) || ISINSCOPE ( 'Table'[Subsidiary] ),
    SUM ( 'Table'[Actual] ),
    [Total all]
)

Then follow the steps in the link below:

Matrix visual - Measure to be shown only in total's part of visual

A workaround would be:

1. Select the Values fields(Measure1Measure2 and Measure3)you want to hide.

2. In the visualization menu, go to Format--> Column headers and set both Auto-size column width and Word wrap to Off

3. In the visual, reduce the width of the column until it disappears completely. This way it will be still there, but completely hidden.


Best Regards

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @TK_FPA ,

In addition, please review the following blog and check if it can achieve your requirement.

How to put the row and column subtotals in front of the matrix

yingyinr_0-1654240729222.png

Best Regards

Anonymous
Not applicable

Hi @TK_FPA ,

There is no more elegant way to implement your requirement, you can refer to this post below to see if the solution can be used as an alternative...

First, you can create three measures as below:

Measure1 =
IF (
    ISINSCOPE ( 'Table'[Financial Year] ) || ISINSCOPE ( 'Table'[Subsidiary] ),
    BLANK (),
    [Total Entity]
)
Measure2 =
IF (
    ISINSCOPE ( 'Table'[Financial Year] ) || ISINSCOPE ( 'Table'[Subsidiary] ),
    BLANK (),
    [Adj Entity]
)
Measure3 =
IF (
    ISINSCOPE ( 'Table'[Financial Year] ) || ISINSCOPE ( 'Table'[Subsidiary] ),
    SUM ( 'Table'[Actual] ),
    [Total all]
)

Then follow the steps in the link below:

Matrix visual - Measure to be shown only in total's part of visual

A workaround would be:

1. Select the Values fields(Measure1Measure2 and Measure3)you want to hide.

2. In the visualization menu, go to Format--> Column headers and set both Auto-size column width and Word wrap to Off

3. In the visual, reduce the width of the column until it disappears completely. This way it will be still there, but completely hidden.


Best Regards

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

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.