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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Tiff
Helper I
Helper I

Operation with the total of a column

Hi all, 

 

I'd like to create something that I never did on Power BI. 

 

In my report, I have a table, with various columns and total. 
How can I make the percentage of the total with the total in another table ? 

To be more specific, I have for exemple a total of 200 units in my first table. In my second table, I have a total of 2000 units. 
I can easily guess that 200 is 10 % of 2000. But how to write this calcul ? Is there a way ? 

Thank you for your help, 

Tiff 

1 ACCEPTED SOLUTION

Hi @Tiff

Create measures (Sheet11->big board,Sheet12->little board)

Measure = CALCULATE(SUM(Sheet11[def]),ALLSELECTED(Sheet11))

Measure 2 = CALCULATE(SUM(Sheet12[def]),ALLSELECTED(Sheet12))

Measure 3 = [Measure]/[Measure 2]

5.png

 

 

Best Regards

Maggie

View solution in original post

5 REPLIES 5
v-juanli-msft
Community Support
Community Support

Hi @Tiff

As pattemmanohar's suggestion, you could create a measure like

1. if the "total" is a column with data of Type Number

MAX(Table1[Total 1])/MAX(Table2[Total 2])

 

2.if the "total" is to calculate the total of a column

CALCULATE(SUM(Table1[column1]),ALL(Table1))/CALCULATE(SUM(Table2[column2]),ALL(Table2))

 

What is the relationship between the two tables?

If there is some trouble implementing this, please share some data example with me for better annalysis.

 

Best Regards

Maggie

exPbTotal.PNG

Hi Maggie, 

 

Thank you for your answer. The problème is that the total (sum) of my column change with the filter (Date etc...). So I want to divise the total of the big board, by the total of the little board... But because the total changes, I don't success ! It's not the total of the column in the Table. I don't know if I'm clear enough... 

 

With "create new mesure", It make the operation in the table in data. But in my report, I have filters to apply... 


I hope you can help me... Thanks a lot 

 

Tiff  

Hi @Tiff

Create measures (Sheet11->big board,Sheet12->little board)

Measure = CALCULATE(SUM(Sheet11[def]),ALLSELECTED(Sheet11))

Measure 2 = CALCULATE(SUM(Sheet12[def]),ALLSELECTED(Sheet12))

Measure 3 = [Measure]/[Measure 2]

5.png

 

 

Best Regards

Maggie

Capture.PNG

Maggie, 

It works, yes. But I realized that 249*100/9337 is not 0.674735.... 
Is there something to do to adapt the operation ? It's strange, I don't understand why the result is not 2.66... 

Thank you for your help... 
Tiffaine 

PattemManohar
Community Champion
Community Champion

@Tiff Please try creating as a "Measure"




Did I answer your question? Mark my post as a solution!

Proud to be a PBI Community Champion




Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.