Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
What am I missing in the allnoblankrow function?
I have a data tabke that looks like this:
| ID | date | Type |
| 1 | 1/21/2022 | a |
| 2 | 1/17/2022 | b |
| 3 | 1/21/2022 | |
| 4 | 3/6/2022 | b |
| 5 | 3/19/2022 | a |
| 6 | 3/29/2022 | a |
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)
Solved! Go to Solution.
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...
Assue that you have the below table data:
1. Create a calculated table
2. Create the measure [No Blanks Count]
ALLNOBLANKROW('Data'[Type])
ALLNOBLANKROW('Data')
Best Regards
@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.
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...
Assue that you have the below table data:
1. Create a calculated table
2. Create the measure [No Blanks Count]
ALLNOBLANKROW('Data'[Type])
ALLNOBLANKROW('Data')
Best Regards
@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] =""))
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 7 | |
| 7 |