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
Lefuneste57
Helper I
Helper I

How to calculate a percentage relative to a column

Hi, i have a table "POPI" like this :

Lefuneste57_0-1742225366100.png

And i want a mesure (Column %percent) who calculate the % of surface value per Town like this :

Lefuneste57_1-1742225592965.png

Thanks for your Help.

 

 

1 ACCEPTED SOLUTION
Pow3Range
Frequent Visitor

Pow3Range_0-1742295938798.png

 

Percent =
VAR SUM_ = SUM('Data'[Surface])
VAR CLIENT_E =  CALCULATE(
        SUM('Data'[Surface]),
        ALLSELECTED('Data'[Client]))
 RETURN
DIVIDE(SUM_,CLIENT_E)

View solution in original post

5 REPLIES 5
Pow3Range
Frequent Visitor

Pow3Range_0-1742295938798.png

 

Percent =
VAR SUM_ = SUM('Data'[Surface])
VAR CLIENT_E =  CALCULATE(
        SUM('Data'[Surface]),
        ALLSELECTED('Data'[Client]))
 RETURN
DIVIDE(SUM_,CLIENT_E)

Hi, Thank you.

It work fine ! 😉

Thanks!!!👍😊

lbendlin
Super User
Super User

lbendlin_0-1742230608018.png

 

Hi, thanks for answer.

But i need to be able to remove certain Client. And when I do this, the formula no longer works.

For exemple, if i remove the client "RET" the percent is not 100%.


 Lefuneste57_1-1742286369187.png

Lefuneste57_2-1742286421214.png

Lefuneste57_3-1742286491109.png

If you have a solution.. Thank you for help.

 

 

 

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.