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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.