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

Help with calculating percentage

Hi Guys,

 

Wanted some help with a dataset I'm currently working with (table name - FeatureProgress):

 

Capture.JPG

 

 

 

 

 

 

 

I'm trying to calculate the percentage of completed work for the 'Title' column. 

In this example the total sum of descendants = 29, and there are 21 of those in a Descendants.State of 'Done'.

So trying to figure out how I get the 0.724 answer 🙂 

 

Any thoughts?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Got it!

 

Answer is:

%complete = DIVIDE(CALCULATE(SUM(FeatureProgress[Descendants.Count]),FeatureProgress[Descendants.State] = "Done"), CALCULATE(SUM(FeatureProgress[Descendants.Count])))

View solution in original post

9 REPLIES 9
mussaenda
Super User
Super User

Hi @Anonymous,

 

I think you will need the function ALL on the second part of your statement

like  divide(sum(Descendants.Count), calculate(sum(Descendants.Count), all(your tablename))

 

Hope this helps

Anonymous
Not applicable

Sorry not quite clear on what the measure should be, are you saying it should be:

PercentageComplete = DIVIDE(CALCULATE(SUM(FeatureProgress[Descendants.Count])),CALCULATE(SUM(FeatureProgress[Descendants.Count]),ALL(FeatureProgress),FeatureProgress[Descendants.State] = "Done"))

 

 

@Anonymous 

 

change your denominator and numarator inside the divide function.

Anonymous
Not applicable

Got it!

 

Answer is:

%complete = DIVIDE(CALCULATE(SUM(FeatureProgress[Descendants.Count]),FeatureProgress[Descendants.State] = "Done"), CALCULATE(SUM(FeatureProgress[Descendants.Count])))

Hi @Anonymous,

 

Like this?

 

Untitled.png

 

% = DIVIDE(SUM(FeatureProgress[Descendants.Count]), CALCULATE(SUM(FeatureProgress[Descendants.Count]), ALL(FeatureProgress)))

Sorry I didn't read that you only need for DONE.

Try this:

% for Done = 
CALCULATE([%], 'FeatureProgress'[Descendants.State] IN { "Done" })

 

Hope this helps

Anonymous
Not applicable

Sorry that still doesn't work for me:

 

Screenshot (325).png

Well then,

I hope the experts here would be able to help you.

 

Sorry for not able to help you solve your problem.

amitchandak
Super User
Super User

@Anonymous , Try a new measure like

divide(calculate(sum(Table[descendants.count])),calculate(sum(Table[descendants.count]),table[descendants.state]= "Done"))

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

Thanks for the quick reply! That doesn't look to be quite right:

 

Screenshot (324).png

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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!

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