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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
FalconBudget
Frequent Visitor

Sort drilldown categories in matrix rows

Howdy. I am working with a large financial data file and need to report out in a specific order. I have tried creating indexes and then sorting by column, but that doesn't seem to work (at least the way I was doing it). For your reference I have three main tables- the raw financial data- by cost center & cost element, a master key for both cost center & cost element to determine groups, and a ranking table for those groups as listed below. 

 

Below I have the matrix as shown in our old excel matrix (where you can just drag the items). It goes Revenue vs Expense, Cost Element group, Cost Element Subgroup, and then the cost element itself. 

 

Old Excel MatrixOld Excel Matrix

This is how it should look- each with the ability to drill down/up.

 

RevenueMiscellaneous Revenues
 Charges for Services
 Intergovernmental Revenues
 Licenses & Permits
 Fines & Forfiets
 Taxes
 Cash Balance
  
ExpensesPersonnel Services
 Maintenance & Operations
 Fixed Costs
 Debt Service
 Contributions & Transfers
 Capital Outlay
 Reserves

 

This is how it looks like in my matrix now.  After too many hours of trying to decipher other posts on rank order index I decided to post here. 

Bi Matrix in wrong orderBi Matrix in wrong order

Any and all help would be appreciated. 

1 ACCEPTED SOLUTION
MFelix
Super User
Super User

Hi @FalconBudget ,

 

 

Assuming that your revenue / Costs are columns in your data.

 

Why don't you add a table with the following format:

Index Category Detail
1 Revenue Miscellaneous Revenues
2 Revenue Charges for Services
3 Revenue Intergovernmental Revenues
4 Revenue Licenses & Permits
5 Revenue Fines & Forfiets
6 Revenue Taxes
7 Revenue Cash Balance
8 Revenue  
9 Expenses Personnel Services
10 Expenses Maintenance & Operations
11 Expenses Fixed Costs
12 Expenses Debt Service
13 Expenses Contributions & Transfers
14 Expenses Capital Outlay
15 Expenses Reserves

 

Then make a relationship between the last column and your data table.

 

Use the ID column to sort the Detail column and use this table for your matrix visual should work.

 

Regards,

MFelix


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

2 REPLIES 2
MFelix
Super User
Super User

Hi @FalconBudget ,

 

 

Assuming that your revenue / Costs are columns in your data.

 

Why don't you add a table with the following format:

Index Category Detail
1 Revenue Miscellaneous Revenues
2 Revenue Charges for Services
3 Revenue Intergovernmental Revenues
4 Revenue Licenses & Permits
5 Revenue Fines & Forfiets
6 Revenue Taxes
7 Revenue Cash Balance
8 Revenue  
9 Expenses Personnel Services
10 Expenses Maintenance & Operations
11 Expenses Fixed Costs
12 Expenses Debt Service
13 Expenses Contributions & Transfers
14 Expenses Capital Outlay
15 Expenses Reserves

 

Then make a relationship between the last column and your data table.

 

Use the ID column to sort the Detail column and use this table for your matrix visual should work.

 

Regards,

MFelix


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



I think I finally figured out my problem, which your comments led me to realize. I wasn't using my new table as the item in the matrix, but rather the old designation and acting confused about why it couldn't be sorted. 

 

It worked once I tweaked the list to add more detail and pulled it in directly. 

 

THANK YOU. 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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