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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
akeener1
New Member

Count if a cell is not blank, and matches an adjacent cell

Example Table

 

Column 1 Column 2
FirstFirst
Second  Second
ThirdThird
 Fourth
FifthFifth
Sixth 
  
EighthEighth

 

So, what I am trying to do is Count all the cells in column 1 that are NOT blank AND match the adjacent cell in Column 2.

In this case, the total count should be 5. I use SumProduct in Excel to achieve this, but I have no idea how to create this in Power BI as I am still a baby user.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@akeener1 , A measure like

 

countrows(filter(Table, not(isblank(Table[Column 1])) && not(isblank(Table[Column 2]))) )

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@akeener1 , A measure like

 

countrows(filter(Table, not(isblank(Table[Column 1])) && not(isblank(Table[Column 2]))) )

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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