Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hello, I am having issues building an income statement using the Matrix table. I have provided sample data below and an end-goal picture. I am trying to achieve the below:
1) TOTAL REVENUE as a sepereate line, then TOTAL DIRECT COSTS as another line (the sum of wage, materials, equipment).
2) CONTRIBUTION MARGIN, CM %, etc on seperate total lines.
3) I would like to sort Wages first, Materials Second, Equipment third.
Trying to achieve this look:
Sample data:
| Date | Amount | OBJ Account |
| Jan-20 | 1804.68 | Revenue |
| Jan-20 | 243.3 | Revenue |
| Jan-20 | -1149.36 | Revenue |
| Jan-20 | 0 | Revenue |
| Jan-20 | -1604.1 | Revenue |
| Jan-20 | -264.98 | Revenue |
| Jan-20 | -1804.68 | Revenue |
| Jan-20 | 1149.36 | Revenue |
| Jan-20 | 0 | Revenue |
| Jan-20 | 1.3 | Revenue |
| Feb-20 | 160.8 | Revenue |
| Feb-20 | 160.8 | Revenue |
| Feb-20 | 160.8 | Revenue |
| Feb-20 | 44160.8 | Revenue |
| Feb-20 | 160.8 | Revenue |
| Feb-20 | 160.8 | Revenue |
| Feb-20 | 200 | Revenue |
| Feb-20 | 200 | Revenue |
| Feb-20 | 200 | Revenue |
| Mar-20 | 132.5 | Revenue |
| Mar-20 | 132.5 | Revenue |
| Mar-20 | 170 | Revenue |
| Mar-20 | 170 | Revenue |
| Mar-20 | 444436 | Revenue |
| Mar-20 | 200 | Revenue |
| Mar-20 | 200 | Revenue |
| Mar-20 | 200 | Revenue |
| Mar-20 | 70 | Revenue |
| Mar-20 | 70 | Revenue |
| Mar-20 | 60 | Revenue |
| Jan-20 | 44475 | Wages |
| Jan-20 | 63670 | Wages |
| Jan-20 | 14803 | Wages |
| Feb-20 | 1154 | Wages |
| Feb-20 | 2133 | Wages |
| Feb-20 | 26248 | Wages |
| Mar-20 | 945 | Wages |
| Mar-20 | 2000 | Wages |
| Mar-20 | 945 | Wages |
| Jan-20 | 41 | Materials |
| Jan-20 | 2879 | Materials |
| Jan-20 | 3599 | Materials |
| Feb-20 | 5687 | Materials |
| Mar-20 | 2807 | Materials |
| Mar-20 | 2448 | Materials |
| Jan-20 | 642 | Equipment |
| Jan-20 | 45.47 | Equipment |
| Feb-20 | 94.06 | Equipment |
| Mar-20 | 219.08 | Equipment |
| Mar-20 | 92.01 | Equipment |
@txpower , You need to create sort column and then use it. example
A new column in the table
Switch( True(),
[OBJ Account] ="Wages" ,1,
[OBJ Account] ="Material" ,2,
//// Keep on adding
)
Mark it as the sort column
Refer steps :https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column
Hi, I am not following. Do you have an example work you can attach?
@txpower - You will need to implement a Sort By column using an if then else statement in Power Query and then sort your column by this sorting column.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 28 | |
| 23 | |
| 18 | |
| 18 | |
| 15 |
| User | Count |
|---|---|
| 50 | |
| 44 | |
| 43 | |
| 39 | |
| 33 |