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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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