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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

Get total in row using matrix

Hi all,

 

I have data as below

 

qhpowerbi_0-1657618182201.png

 

I want to have the table as below using matrix table with total breakdown is combined as sum. 

qhpowerbi_1-1657618288203.png


But what I get when place column category,animal & breakeven place at row; price sold as value using matrix as below;

qhpowerbi_2-1657618489024.png


anyone can help me with this?

Thanks!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Guys, 

 

I have found the answer. I made another table which group by the total breakeven by anmial;

 

BREAKEVEN_TABLE = SUMMARIZE(animal_table, animal_table[animal], sum(animal_table[breakeven])).

BREAKEVEN_TABLE connect to animal_table using animal as key.


Thank you!

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Guys, 

 

I have found the answer. I made another table which group by the total breakeven by anmial;

 

BREAKEVEN_TABLE = SUMMARIZE(animal_table, animal_table[animal], sum(animal_table[breakeven])).

BREAKEVEN_TABLE connect to animal_table using animal as key.


Thank you!

amitchandak
Super User
Super User

@Anonymous , I doubt you can get like first screenshot. But you can get 10 the same number first screenshot

 

You can have a new column

sumc(filter(Table, [Category] = earlier([Category]) && [animal] = earlier([animal]) ), Table[breakeven USD]) 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.