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
Anonymous
Not applicable

Calculating Percentages

So I have this calculated table (I derived the table using a CALCULATE()), that looks like this.

 

DeptLocationNo of Ppl
SalesUSA40
SalesDenmark20
SalesSweden40
SalesAustralia30
SalesNorway80
SalesIndia10
SalesChina30

 

Now, I need 2 additional columns (Cols 4 & 5 in the table below), that will help me calculate the percentage - something like this!

 

DeptLocationNo of PplTotal PplPercentage
SalesUSA402500.16
SalesDenmark202500.08
SalesSweden402500.16
SalesAustralia302500.12
SalesNorway802500.32
SalesIndia102500.04
SalesChina302500.12

 

Can someone help me do that? Also, please note that there are multiple departments in the department column. The Total ppl column should contain values for each department! 

 

Thanks in advance 🙂 

1 ACCEPTED SOLUTION
Sean
Community Champion
Community Champion

@Anonymous

Okay if you really want COLUMNS here are those formulas...

 

Total People COLUMN = CALCULATE ( SUM ( 'Table'[No of Ppl] ), ALLEXCEPT('Table', 'Table'[Dept]) )

Percentage COLUMN = DIVIDE ( 'Table'[No of Ppl], 'Table'[Total People COLUMN], 0 ) 

But in case you want MEASURES

 

Total People MEASURE = CALCULATE ( SUM ( 'Table'[No of Ppl] ), ALLEXCEPT('Table', 'Table'[Dept] ) )

Percentage MEASURE = DIVIDE ( SUM('Table'[No of Ppl]), [Total People MEASURE], 0) 

Hope this helps!

Good Luck! Smiley Happy

 

View solution in original post

6 REPLIES 6
Simona0926
Microsoft Employee
Microsoft Employee

Hey all,

I am trying to find a measure that would help me to see the percentage of each status for each AREA.

 

Example: I have a total of 40 tickets from which 20 on WE and 20 on MEA.

I want to see what % of the total on WE are completed.

At this moment I have the option to see only the % of the total (40 tickets).

 

I would like to highlight the fact that the chart used is columns (not tables).

 

Thank you so much in advance.

Sean
Community Champion
Community Champion

@Anonymous

Okay if you really want COLUMNS here are those formulas...

 

Total People COLUMN = CALCULATE ( SUM ( 'Table'[No of Ppl] ), ALLEXCEPT('Table', 'Table'[Dept]) )

Percentage COLUMN = DIVIDE ( 'Table'[No of Ppl], 'Table'[Total People COLUMN], 0 ) 

But in case you want MEASURES

 

Total People MEASURE = CALCULATE ( SUM ( 'Table'[No of Ppl] ), ALLEXCEPT('Table', 'Table'[Dept] ) )

Percentage MEASURE = DIVIDE ( SUM('Table'[No of Ppl]), [Total People MEASURE], 0) 

Hope this helps!

Good Luck! Smiley Happy

 

Anonymous
Not applicable

Hey Sean,

 

I'm looking only for Columns. But the SUM() formula to calculate no of people doesn't seem to help if I have more than 1 department.  I'm sending you a sample below.

 

DeptLocationNo of PplTotal PplPercentage
SalesUSA402500.16
SalesDenmark202500.08
SalesSweden402500.16
SalesAustralia302500.12
SalesNorway802500.32
SalesIndia102500.04
SalesChina302500.12
HRUSA201370.15
HRDenmark101370.07
HRSweden501370.36
HRAustralia201370.15
HRNorway251370.18
HRIndia101370.07
HRChina21370.01
Anonymous
Not applicable

Hi Shirley,

 

I have the same issue, as you did. Just with "Used budget" and "Budget", where I want to find the "Percentage used" for each department. 

 

I'tried the formules under Colums as mentioned above, but it doesn't work. Can you show mewhat you wrote in the formula bar to get your percentages?

 

Regards Jonas

Sean
Community Champion
Community Champion

@Anonymous

Formulas revised above! Smiley Happy

Anonymous
Not applicable

That works! Thanks a ton!!! 🙂

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Solution Authors
Top Kudoed Authors