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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
DataTyp
New Member

adding up percentages

Hi all

 

 

Let us say I have data like this 

District & Village

Total Population

Youth

Youth%

A1

500

100

20%

A2

600

300

50%

A3

700

175

25%

A4

200

25

12.5%

B1

400

44

11%

B2

200

16

8%

 

 How do I make sure that the percentages are aggregated rightly as in the table below? Many thanks for the help

District(rural)

Total Population

Youth

Youth%

A

2000

600

30%

B

600

60

10%

    
    
2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Well if your youth% is a measure, it will do that correct automatically!

 

Your formula for youth% should be something like:

 

Youth%=SUM(Youth)/SUM(Total Population)

 

If you now display it as Districts only (you can split the column District & village for example), the calculation will still work, but with a different Evaluation context. It will now sum all the total populations in district A together, and all the youth, and generate the correct percentage.

 

Hope that helps!

 

Jaap

View solution in original post

Anonymous
Not applicable

HI @DataTyp,

 

If 'Youth %' is a measure, you can add a calculate column to store new category and use new category to summary visual.

Measure Youth % formula:

Youth % = SUM(Test[Youth])/SUM(Test[Total Population])

Steps:

1. Add calculated column district(rural).

District(rural) = LEFT([District & Village],1)

2. Create new table visual with above column, change 'Total Population' and 'Youth' columns' summary mode to 'SUM'.

6.PNG

 

Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

HI @DataTyp,

 

If 'Youth %' is a measure, you can add a calculate column to store new category and use new category to summary visual.

Measure Youth % formula:

Youth % = SUM(Test[Youth])/SUM(Test[Total Population])

Steps:

1. Add calculated column district(rural).

District(rural) = LEFT([District & Village],1)

2. Create new table visual with above column, change 'Total Population' and 'Youth' columns' summary mode to 'SUM'.

6.PNG

 

Regards,

Xiaoxin Sheng

Anonymous
Not applicable

Well if your youth% is a measure, it will do that correct automatically!

 

Your formula for youth% should be something like:

 

Youth%=SUM(Youth)/SUM(Total Population)

 

If you now display it as Districts only (you can split the column District & village for example), the calculation will still work, but with a different Evaluation context. It will now sum all the total populations in district A together, and all the youth, and generate the correct percentage.

 

Hope that helps!

 

Jaap

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors