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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Kudoed Authors