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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.

Top Solution Authors