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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Sum totals in matrix that is based on a division measure

Hi Community, 

I have a problem, where I have a matrix. Based on these two tables (row and column), i will like to know, where a values from another tabels appears i both tabels, by written binary values. I got the "1" by divided the number with itself, and then get the number instead of the original value. 

So fx the with the values focused in the cicles, i will like it to write "2" instead of the division measure

mariedyrendal_1-1631085800842.png

mariedyrendal_0-1631085703937.png

I have try with if statements with the measure that returns the "1", but it does not show anything (i will like it to write both 1 and 0 so i mayby could get the total sum in the grandtotals) 

mariedyrendal_2-1631085854187.png

Really hope someone can help! 

 

 

2 REPLIES 2
Tanushree_Kapse
Impactful Individual
Impactful Individual

Hi @Anonymous ,

 

To get the correct grand total, use the below DAX:
Measure= SUMX(VALUES([Column_for_which_aggregating]), Overbooked demand2)

 

 

Mark this as a solution, if I answered your question. Kudos are always appreciated.

Thanks.

Anonymous
Not applicable

Thank you for the response!

I have try to write it, where "column_for_which_aggregating" is the tabel that i have create the measure that write "1" and then my if-funktion. But i think it is ignoring the if-funktion, because it just summerize the numbers i whink. So i will just like it to wirte 1 if there is a demand on the person or 0 if there is not, and then summerzie in the grand total, if one colum write "1" more than one time (fx two "1" it should write 2 in the grand total)

hope that make sense, I try to write your expression like this: 

mariedyrendal_0-1631090665572.png



And just to be clear, my other expression is written like this: 

mariedyrendal_1-1631090718480.png

 =

mariedyrendal_2-1631090904553.png

 

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.