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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
BugmanJ
Helper V
Helper V

Row SUM Total of rows made up of Minimum Values

Hi,

In the following table (called "Table"), Each Baker has multiple different ingriendants ('Table'[Cost]) for each of the "Ingriendants" accross the top. The table is set to the minimum value for each. However the ROW total only shows the minimum of that row, I need it to show the SUM of the entire ROW (not column).


Powerbi problems.PNG

 

Any ideas?

Bonus Questions

1. Taylors has no options for Ingrediant 3, how can this (or other bakers) baker be filtered out if not meeting the number of ingriendants

2. - I actually only want to show the ROW SUM total for each baker, not the column SUM or all the values visible, Is this possible?


Thank you

J

(PS I tried this solution https://community.powerbi.com/t5/Desktop/Grand-Total-of-measure-doesn-t-equal-sum-of-row-values/m-p/... but all it did was to sum all the vairous values!)

7 REPLIES 7
BugmanJ
Helper V
Helper V

Hi @AlexisOlson  / @amitchandak 

I was eventually able to solve this, my example had several tables built together so it was just the right field being referenced.

 

In addition for the bonus question, I am still struggling. Filtering doesnt work.

Thank you both

Ashish_Mathur
Super User
Super User

Hi,

If your question has not been answered so far, then i'd like to help.  Share the link from where i can download your PBI file.


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

You can create a table like this

AlexisOlson_0-1651949714144.png

with a measure like this:

SUMX ( VALUES ( 'Table'[Ingrediant] ), CALCULATE ( MIN ( 'Table'[Cost] ) ) )

 

If I'm understanding your bonus questions correctly, try this:

IF (
    DISTINCTCOUNT ( 'Table'[Ingrediant] ) = COUNTROWS ( ALLSELECTED ( 'Table'[Ingrediant] ) ),
    SUMX ( VALUES ( 'Table'[Ingrediant] ), CALCULATE ( MIN ( 'Table'[Cost] ) ) )
)

AlexisOlson_1-1651949915236.png

Hi Alexis,

This works until you try and filter the food for any food. it works for all, but as soon as a filter is placed for each different food, it fails. Any thoughts to a solution about that?

 

Thank you

Hi @AlexisOlson 
Thanks for taking the time to very clearly note all the equations down. Sadly however, I am still stuck with the picture:
Powerbi cake problem.PNG
What did I do wrong?

amitchandak
Super User
Super User

@BugmanJ , Check if this measure can help

minx(summarize(Table, Table[bakers], Table[Ingredient],"_1", Sum('Table'[Cost])  ), [_1] _

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

Hi @amitchandak 
Sadly i have the same problem, 

BugmanJ_1-1652353759365.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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.