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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
cvarvar
Regular Visitor

Calculation Between Columns

Hi all,

 

I have an issue on Matrix Table. I want to create an new Matrix table with dividations beetween columns. I made them with New Column, but my issue is that the Category summarize the column results and it is wrong. Attached you will find a sample of my data on the matrix.

 

cvarvar_0-1655726061033.png

So an example: 

 

For April, SEG "A":

- aa:

           - AAA: 401/1163 = 0.34

           - BBB: 762/1163 = 0.66

- bb:

           - AAA: 40/113 = 0.35

           - BBB: 73/113 = 0.65

So Total for AAA must be 441/1276 = 0.35, not (401/1163 = ) 0.34 + (40/113 = ) 0.35 = 0.64  and Total must be 0.48 = 1276/2627 not the Sum of AAA (SEG "A") + BBB (SEG "A") 

 

Thank you,

cvarvar

3 REPLIES 3
Anonymous
Not applicable

Hi @cvarvar ,

 

If the [customers] is a column, please use SUM([customers]) instead.

If it doesn't work, please share some sample data in table format.

 

Best Regards,

Jay

amitchandak
Super User
Super User

@cvarvar , assume the value of aa and bb is sub Seg , then create a measure like

 

divide([measure], calculate([measure], removefilters(Table, Table[Sub SEG])))

 

Percent of SubTotal or Total: https://www.youtube.com/watch?v=6jTildcV2ho&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=37

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

Thank you for your answer.

 

There is an error here:

cvarvar_0-1655733974146.png

The field CUSTOMERS is numeric filed and it came from the base DB that is aggregated (CUSTOMERS = SUM(Record_Count))

 

Thank you.

 

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.