Forum Discussion

Prash546's avatar
Prash546
Icon for Helper I rankHelper I
5 years ago
Solved

How to Sum only selected values in a matrix table

I have the first table which is matix table as of now, I want to insert row highlighted in yellow in second table by addign keyfinancial column by adding fields from Plan to regional update, how to proceed with this?

 

 

 

 

  • Hi,

    You can try the following steps.

     

    1 Add index to the original table in Power Query

     

    2 Sort the Key Financials column by index column(Key Financials will display in matrix according to the index)

     

    3 Create a Calculated table “Second table” in pbix file

     

    4 Use this new table(Matrix doesn’t support format Rows as yellow) to create a table visual

     

    5 Create a Measure to Conditional format the “Actuals” row

    highlight = IF(SELECTEDVALUE('Second table'[Key Financials])="Actuals","yellow")

     

    The result looks like this:

    Here is the pbix.

     

    Best Regards,

    Caiyun Zheng

     

    Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

1 Reply

  • v-cazheng-msft's avatar
    v-cazheng-msft
    Icon for Community Support rankCommunity Support

    Hi,

    You can try the following steps.

     

    1 Add index to the original table in Power Query

     

    2 Sort the Key Financials column by index column(Key Financials will display in matrix according to the index)

     

    3 Create a Calculated table “Second table” in pbix file

     

    4 Use this new table(Matrix doesn’t support format Rows as yellow) to create a table visual

     

    5 Create a Measure to Conditional format the “Actuals” row

    highlight = IF(SELECTEDVALUE('Second table'[Key Financials])="Actuals","yellow")

     

    The result looks like this:

    Here is the pbix.

     

    Best Regards,

    Caiyun Zheng

     

    Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.