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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

allnoblankrow doesn't show expected value

What am I missing in the allnoblankrow function?

I have a data tabke that looks like this:

IDdateType
11/21/2022a
21/17/2022b
31/21/2022 
43/6/2022b
53/19/2022a
63/29/2022a

 

And I have a measure:

No Blanks Count = COUNTROWS(ALLNOBLANKROW(Data[Type]))

 

The measure returns 3, while I expect it to return 5 (all raws where type is not blank)

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

I created a sample pbix file(see attachment) for you, ou can refer to the following link and the example in the pbix file to understand why you use the below formula to get 3 instead of a 5...

yingyinr_0-1649406408395.png

ALLNOBLANKROW

yingyinr_4-1649406292664.png

Assue that you have the below table data:

yingyinr_0-1649406070868.png

1. Create a calculated table

yingyinr_1-1649406101364.png

2. Create the measure [No Blanks Count]

ALLNOBLANKROW('Data'[Type])ALLNOBLANKROW('Data'[Type])

ALLNOBLANKROW('Data')ALLNOBLANKROW('Data')

Best Regards

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

@amitchandak , thanks, I indeed  used filter instead and it works, however my question was meant to understand the ALLNOBLANKROW function, which if would work as expected is much more intuitive.

Anonymous
Not applicable

Hi @Anonymous ,

I created a sample pbix file(see attachment) for you, ou can refer to the following link and the example in the pbix file to understand why you use the below formula to get 3 instead of a 5...

yingyinr_0-1649406408395.png

ALLNOBLANKROW

yingyinr_4-1649406292664.png

Assue that you have the below table data:

yingyinr_0-1649406070868.png

1. Create a calculated table

yingyinr_1-1649406101364.png

2. Create the measure [No Blanks Count]

ALLNOBLANKROW('Data'[Type])ALLNOBLANKROW('Data'[Type])

ALLNOBLANKROW('Data')ALLNOBLANKROW('Data')

Best Regards

amitchandak
Super User
Super User

@Anonymous , Try these

COUNTROWS(filter(Data, isblank(Data[Type])))

 

If the below one give data means some blanks are empty string not blank

COUNTROWS(filter(Data, Data[Type] =""))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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