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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Count if one column A is not blank, but other column B is blank

Hello, May I know what should I code based on below logic. 
Would like to know the number of Unique "PR Number" that is not blank, but the row of "PO number " is blank. 
Screenshot 2022-05-13 163746.png

1 ACCEPTED SOLUTION
AilleryO
Memorable Member
Memorable Member

Hi,

 

This should do the trick :

Count of Unique PR w PO Blank = 
CALCULATE( DISTINCTCOUNT( TabPRPO[PR Num] ) ,
FILTER( TabPRPO, ISBLANK( TabPRPO[PO Num] ) && NOT ISBLANK(TabPRPO[PR Num]) ) )
 
Let us know...

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Thank you so much ! it works ! Really appreciate that. 

AilleryO
Memorable Member
Memorable Member

Hi,

 

This should do the trick :

Count of Unique PR w PO Blank = 
CALCULATE( DISTINCTCOUNT( TabPRPO[PR Num] ) ,
FILTER( TabPRPO, ISBLANK( TabPRPO[PO Num] ) && NOT ISBLANK(TabPRPO[PR Num]) ) )
 
Let us know...

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.