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
ChrisAZ
Helper V
Helper V

Multiple Expense types, wanting their totals in separate columns in matrix

I have a data source that has a column with values and another that indicates the Expense type. I want to be able to pull in the totals for each Expense type in a matrix as separate columns/totals. I am not sure how to do that.

 

Please be specific as I am pretty new still to this.

 

Thanks!

1 ACCEPTED SOLUTION
ChrisAZ
Helper V
Helper V

I did not get a solution here, but I did figure this out on my own. I was able to use the "Add Column" then "Conditional Column" in the Transform space to create new columns based on the result in the Expense name column.

View solution in original post

15 REPLIES 15
ChrisAZ
Helper V
Helper V

I did not get a solution here, but I did figure this out on my own. I was able to use the "Add Column" then "Conditional Column" in the Transform space to create new columns based on the result in the Expense name column.

lbendlin
Super User
Super User

Please give us something to work with.

 

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information. Do not include anything that is unrelated to the issue or question.
Please show the expected outcome based on the sample data you provided.

Need help uploading data? https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Nott sure how to get you the source as it is linked to an integrator and not a specific spreadsheet, but basically it looks like this and the column labeled "Expense name"  has a number of categories. I would like to be able to pull those totals out for each category into what you see in the second screenshot kind of like Parts Cost, labor, cost, etc but all for this specific table. (again not sure how to show you what I want it to look like when I can't get it to look like how I want)

ChrisAZ_0-1743201160863.png

ChrisAZ_1-1743201264197.png

 

 

 

 

 

What do you mean by "Columns here"? You can just drag the expense category to the column tile of a matrix.





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.

The issue is that I can't just drag the Expense column because it will show expenses of all types in that column. I want to be able to separate out into different columns the different expense types found in that column

Hi,

In a matrix visual, drag the Expense type column to the Columns well.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

To the Columns well?

Hi @ChrisAZ,

Thank you for reaching out to the Microsoft Fabric Forum Community.

I have attached the PBIX file for your reference. Could you confirm if the output in this file matches your expectations?

Thank you @lbendlin @danextian @Ashish_Mathur, for providing your insights.

 

vsaisraomsft_0-1743488037466.png

If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly.

 

Thank you.

Thanks. So this does seem to work, but the issue I am having is that I have other columns I need to display in the same visual that come from other sources than this one table, so I am not sure how to build this out so these get added in to the existing matrix?

 

This is what my first Matrix looks like:

ChrisAZ_0-1743519013218.png

 

And this is how I am able to pull in the info from that other source thanks to your info:

ChrisAZ_1-1743519104815.png

The difference is obviously in the way the values are placed in the columns and values field. Any ideas on that?

@v-saisrao-msft Hello, checking back on this as I am able to create this as its own Matrix, but how can I get those same columns into my other table that pulls these column values from multiple sources?

So meaning I have different Expense types in this one column in my data sources, some are Telematics Devices, Washes, Permits, etc. I want to be able to pull the totals of each of those individual expense types into their own columns. I know how to provide the total of those in one column with how it is in my data set, but unsure how to break them out as individual columns in a matrix.

@danextian Does that make more sense?

Screenshots are not helping. Please check the links I included.

MonthCostNotesExpense nameVehicle_IDYear
September11 Telematics Device32156532024
September157 Washes31383402024
October3 Permits32156532024
      

What is the expected output based on the sample data you provided?

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.