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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

COUNTIF & COUNTIFS

Hi all,


I'm trying to replicate the following Excel formula in a column that lives in PowerBI, and I'm having some trouble. The formula should pull complete if all items for a certain grouping are complete. If only partial items are complete for the grouping, the result should be incomplete.

 

=IF(COUNTIF(A:A,A2)-COUNTIFS(A:A,A2,C:C,"COMPLETE")=0,"COMPLETE","INCOMPLETE")

 

GroupingItemItem StatusGrouping Status
BFW1CompleteINCOMPLETE
BFW2CompleteINCOMPLETE
BFW3IncompleteINCOMPLETE
BFW4IncompleteINCOMPLETE
HP NITROGEN5CompleteCOMPLETE
HP NITROGEN6CompleteCOMPLETE

 

Any idea how to replicate this formula in PowerBI when COUNTIF and COUNTIFS do not exist?

All help is appreciated...

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@Anonymous 

Ads this as a column to your table: 

Status = 
IF(
    CALCULATE( COUNTROWS(Table1) , Table1[Item Status] = "Incomplete", ALLEXCEPT(Table1,Table1[Grouping])) > 0,
    "Incomplete",
    "Complete"
)

 

________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

1 REPLY 1
Fowmy
Super User
Super User

@Anonymous 

Ads this as a column to your table: 

Status = 
IF(
    CALCULATE( COUNTROWS(Table1) , Table1[Item Status] = "Incomplete", ALLEXCEPT(Table1,Table1[Grouping])) > 0,
    "Incomplete",
    "Complete"
)

 

________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.