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

How to get Overall % in a table visual

I have a table as shown below:

EalTim_0-1649851467530.png

I want to add a measure to the table visual that calculate overall % of Approved status

Total milestone = 6

Milestone with Approved Status =2

Overall % = 2/6 = 33%

Hence, what i want to achieve is shown below

EalTim_1-1649851636695.png

Thanks

 

 

1 ACCEPTED SOLUTION
Pragati11
Super User
Super User

Hi @Anonymous ,

 

You can achieve this with the help of a measure.

Input data taken:

Pragati11_0-1649853513683.png

Now create a DAX measure:

Overall = 
var numerator = CALCULATE(COUNTROWS(Milestone), ALLEXCEPT(Milestone, Milestone[Status]))
var denominator = CALCULATE(COUNTROWS(Milestone), ALL(Milestone))
var overall = (DIVIDE(numerator, denominator, 0))/2
var statusVal = SELECTEDVALUE(Milestone[Status])
RETURN
IF(
    statusVal = "Approved", overall, " "
)
    

Now move this to a table visual and you get the required result:

Pragati11_1-1649853581406.png

I have defined 3 decimal places for the Overall measure. This can be modified easily.

 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

View solution in original post

5 REPLIES 5
Pragati11
Super User
Super User

Hi @Anonymous ,

 

You can achieve this with the help of a measure.

Input data taken:

Pragati11_0-1649853513683.png

Now create a DAX measure:

Overall = 
var numerator = CALCULATE(COUNTROWS(Milestone), ALLEXCEPT(Milestone, Milestone[Status]))
var denominator = CALCULATE(COUNTROWS(Milestone), ALL(Milestone))
var overall = (DIVIDE(numerator, denominator, 0))/2
var statusVal = SELECTEDVALUE(Milestone[Status])
RETURN
IF(
    statusVal = "Approved", overall, " "
)
    

Now move this to a table visual and you get the required result:

Pragati11_1-1649853581406.png

I have defined 3 decimal places for the Overall measure. This can be modified easily.

 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

@Pragati11  - Thanks for the reply. It worked. However, the requirement is to remove the Status column, if it doesn't work. And if there are multiple Milestone with different status, it work work. 
For example, this has multiple milestone with different status.

EalTim_0-1649862421882.png

The achieve outcome should look like this below:

EalTim_1-1649862540823.png

sorry for confusion

 

Hi @Anonymous ,

 

A little more clarity on your question earlier must have been appreciated.

What should be the output for % now as you have Approved status multiple times appearing now? It's not just 2 times as before.

Please provide me a proper output required rather than just showing % signs as the output.

 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

@Pragati11 - Firstly, I want to check only Approved status. 

And Secondly, I want to divide count of Approved status by count of Milestone to get overall %

HI @Anonymous ,

 

Check my previous response with the solution.

 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

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
Top Kudoed Authors