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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

Set values as Maximum but want to have the grand total sum those values

I have a matrix that I have built a financial report into, basically a budget to actual comparison. My issue came about once I started to add multiple locations into to columns field. I am trying to bring in the budget values for each account group (by location). The problem i came across is that the budget is a column on the actuals table, so when i bring it in, its sums it all up and gives me a very large budget number (basically multipling it by how many times that actual occurs). To "fix" this, if i change the value field on budget to maximum (or minimum), it gives me the correct values, but the grand total at the bottom is not the total, it is just the maximum value in that budget column. Is there a way i can still just have that grand total line sum up what is in the budget column, on the matrix. 

 

If there is another way to get the budget numbers in, i am all ears. I have only just taugh myself this program the past few months, so if there is like a measure that can be done, let me know. I am not too familiary with those just yet, basically ive created new columns and uses lookups or merges to bring that in. 

 

See below for a screeshot 

image.png

 

 

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

 

Hi @MFelix

 

I was actually able to get it to work. Now that PowerBI allows for Many to Many relationships, i was able to get that done and work with that.

 

image.png

 

 

Thanks for putting the time into this!

 

 

View solution in original post

7 REPLIES 7
MFelix
Super User
Super User

Hi @Anonymous,

 

In order to help you better can you please explain some thing on your model:

  • Do you have two tables (Actuals + Budget) or only one?
  • If you have two tables how are they related?
  • Do you use the column values on your matrix or do you use measures?

Believe that if you have 2 tables with the correct relationship between both tables you can achieve the desired result, but as said you need to give further inshight on your model setup.

 

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



Anonymous
Not applicable

Hi, 

 

technically i have two tables (budget and actuals) but when trying to create a relationship, it doesnt work because there are no unique values that i can create the relationship on. So to get around this, i have done a merge query on the actuals table to bring the budget values on to that table. In this case i match them by location, department, and account. 

 

I use column values on my matrix. usually this column would be the values i bring in from the merge or if i do a lookupvalue instead of a merge. 

Hi @Anonymous,

When you do the merge of both tables the values are repeated that.s why you are getting big values on your matrix.

You need to create a dimension table with unique values and then use this to make the relationship between both tables.

Can you share the structure of your tables and the common fields so I can give you the steps to make it happen?


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



Anonymous
Not applicable

Hi @MFelix,

 

Here are my Tables structure. I put them into Google Sheets, that was the easiest way i could think of to share them. 

 

Please let me know if there is something else youd need.

 

Thanks!  MFelix

Hi @Anonymous,

 

can you please tell me what is the column / columns that make the connection between both tables?

 

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



Anonymous
Not applicable

 

Hi @MFelix

 

I was actually able to get it to work. Now that PowerBI allows for Many to Many relationships, i was able to get that done and work with that.

 

image.png

 

 

Thanks for putting the time into this!

 

 

Hi @analist31,

Glad you were abble to do it but be carefull when setting up many to many relationships and the way cslculations are made.

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



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.