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
aeinc01
Frequent Visitor

Trying to understand how to filter and divide two values in the same column.

Hi, 

 

I'm new to Power Bi and I'm currently running into a issue with wanting to calculate fullfilment rate. This is the function I've come up with, but it's currently running an error.

 

Completion Rate =
DIVIDE(
Calculate COUNT('Table13'[name]), FILTER('Table13','Table1'[AccountStatus]="Open")),
Calculate COUNT('Table13'[name]) , FILTER('Table13','Table1'[AccountStatus]="Closed")))*100)

 

NameAccountStatus
John YorkOpen
Sarah BlackOpen
Megan BirchOpen
George HowardClosed
Frank SacksClosed
1 ACCEPTED SOLUTION

Hi @aeinc01 ,
I think this is what you are trying to do ("//" comments out the line):

Completion Rate = 
DIVIDE (
    //Calculate( COUNT(Table13[name]), FILTER('Table13','Table13'[AccountStatus]="Open")),
    //Calculate COUNT('Table13'[name]) , FILTER('Table13','Table1'[AccountStatus]="Closed")))*100))
    CALCULATE (
        COUNT ( Table13[Name] ),
        FILTER ( Table13, Table13[AccountStatus] = "Open" )
    ),
    CALCULATE (
        COUNT ( Table13[Name] ),
        FILTER ( Table13, Table13[AccountStatus] = "Closed" )
    )
)

 but doesn't this make more sense?

Completion Rate 2 = 
DIVIDE (
    
        CALCULATE (
        COUNT ( Table13[Name] ),
        FILTER ( Table13, Table13[AccountStatus] = "Closed" )
    ),
    CALCULATE (
        COUNT ( Table13[Name] ))
        
    
)

Nathaniel_C_0-1670778256944.png

You can format it as a percentage as shown above, when you select the measure on the right.

Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

5 REPLIES 5
aeinc01
Frequent Visitor

Thank you this works well!

Hi @aeinc01 ,

You are very welcome!  Thank you for marking this as a solution.


Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Nathaniel_C
Community Champion
Community Champion

Hi @aeinc01 ,
You're showing one table.  What is table 13? I am thinking that is your error.

Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Table13 is the name of the mock table posted. I accidently typed a type. Table 1 is also Table 13.

Hi @aeinc01 ,
I think this is what you are trying to do ("//" comments out the line):

Completion Rate = 
DIVIDE (
    //Calculate( COUNT(Table13[name]), FILTER('Table13','Table13'[AccountStatus]="Open")),
    //Calculate COUNT('Table13'[name]) , FILTER('Table13','Table1'[AccountStatus]="Closed")))*100))
    CALCULATE (
        COUNT ( Table13[Name] ),
        FILTER ( Table13, Table13[AccountStatus] = "Open" )
    ),
    CALCULATE (
        COUNT ( Table13[Name] ),
        FILTER ( Table13, Table13[AccountStatus] = "Closed" )
    )
)

 but doesn't this make more sense?

Completion Rate 2 = 
DIVIDE (
    
        CALCULATE (
        COUNT ( Table13[Name] ),
        FILTER ( Table13, Table13[AccountStatus] = "Closed" )
    ),
    CALCULATE (
        COUNT ( Table13[Name] ))
        
    
)

Nathaniel_C_0-1670778256944.png

You can format it as a percentage as shown above, when you select the measure on the right.

Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel

 





Did I answer your question? Mark my post as a solution!

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.