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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
cn4422
Helper V
Helper V

Sorting specific column in matrix visual

Hello,

 

I'm trying to sort my matrix table (link to Power BI File) by a specific column, in my case Leads for ContactGroup "A".

In the past is was possible to simply add a measure as a tooltip and use it for sorting, but that doesn't work anymore.

 

This is my table.

2026-02-19 16_33_31-Sorting_Test_01.png

 

It should look like this, but without the SumLeads A Column. 😄

 

2026-02-19 16_33_31-Sorting_Test_02.png

 

I was wondering if somehow it's possible to do with visual calculations... but I couldn't find a possible solution and am at a loss now.

 

Any input is much appreciated. 🙏

 

1 ACCEPTED SOLUTION
cengizhanarslan
Super User
Super User

Create a measure that calculates Leads for ContactGroup A:

Sort Leads A =
CALCULATE(
    [Leads], 
    'ContactGroup'[ContactGroup] = "A"
)

 

Add this measure to the matrix:

  • Put it in Values

  • Turn off visibility:

    • Set column width very small, or

    • Rename to blank, or

    • Hide via conditional formatting (font = background)

Then: Matrix → More options (…) → Sort by → Sort Leads A

_________________________________________________________
If this helped, ✓ Mark as Solution | Kudos appreciated
Connect on LinkedIn | Follow on Medium
AI-assisted tools are used solely for wording support. All conclusions are independently reviewed.

View solution in original post

5 REPLIES 5
danextian
Super User
Super User

Hi @cn4422 

Sorting by different columns is only possible when those columns aren’t coming from a dimension. Once a measure is broken down by a dimension (like categories), individual sorting per category isn’t supported. The visual will sort using the total column, which means the total must reflect the value of the specific category rather than the aggregate of all categories. Also, adding a measure as a tooltip has generally not been supported for matrix and table visuals (it works only with some other visuals).

 

Sample measure to return the value of A at the total column.

new measure =
IF (
    NOT ( HASONEVALUE ( 'table'[ContactGroup] ) ),
    CALCULATE ( [leads measure], KEEPFILTERS ( 'table'[ContactGroup] ) = "A" ),
    [leads measure]
)

 

Of course, this means that the total shows the value of A only.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
cengizhanarslan
Super User
Super User

Create a measure that calculates Leads for ContactGroup A:

Sort Leads A =
CALCULATE(
    [Leads], 
    'ContactGroup'[ContactGroup] = "A"
)

 

Add this measure to the matrix:

  • Put it in Values

  • Turn off visibility:

    • Set column width very small, or

    • Rename to blank, or

    • Hide via conditional formatting (font = background)

Then: Matrix → More options (…) → Sort by → Sort Leads A

_________________________________________________________
If this helped, ✓ Mark as Solution | Kudos appreciated
Connect on LinkedIn | Follow on Medium
AI-assisted tools are used solely for wording support. All conclusions are independently reviewed.

@cengizhanarslan @  Thanks for your replay. I actually thought about that too, but I was wondering if there is a "cleaner solution" as well

 

But if nothing else comes up I will either do that or make separate measures for every columen cause then I can sort individually by everything.

 

Edit:
I think I'll go with this. In addition, I formatted my measure with ";;;" so that the one column with values makes the values "invisible" as well.

Hans-Georg_Puls
Super User
Super User

Hi @cn4422 ,

a quick solution would be to add "SumLeads A" as Value, switch off "text wrap" for values and column, reduce the column width of all "SumLeads A" columns to zero and adjust the sort by setting of the matrix visual. Only the little triangle couldn't be removed:

HansGeorg_Puls_0-1771519569433.png

Does that help you?

@Hans-Georg_Puls  Thanks for your replay. I actually thought about that too, but I was wondering if there is a "cleaner solution" as well.

 

But if nothing else comes up I will either do that or make separate measures for every columen cause then I can sort individually by everything.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.