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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Lenihan
Helper III
Helper III

countblank for 20 columns

Hi, 

In excel, I had a column that would review 20 columns, and if there was a blank in any of them it would flag the row that there is missing data.

The formula I used in a new column was: 

=IF(COUNTBLANK(A2:S2)>0,1,0)  and if it equaled 1, it meant at least one column was blank. 

 

But - I can't figure out how to do the same in Power BI For Desktop. It has a countblank function but it can't compare multiple columns. Do I need to create 20 additional columns each month or is there a simple way to do this?

 

Thanks!

 

Rob

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

@Lenihan

 

hi, in Query Editor

 

Select your 20 columns, Replace Value 

 

step1.png

 

2.  Go to Add Column --Statistics-CountValues

 

step2.png

 

3. Add the Flag Column

 

Step3.png




Lima - Peru

View solution in original post

2 REPLIES 2
Vvelarde
Community Champion
Community Champion

@Lenihan

 

hi, in Query Editor

 

Select your 20 columns, Replace Value 

 

step1.png

 

2.  Go to Add Column --Statistics-CountValues

 

step2.png

 

3. Add the Flag Column

 

Step3.png




Lima - Peru

Thanks Victor - that worked like a charm. I wasn't aware of those options when editing data - this will help me with other things too 🙂

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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