Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
How do I count blank values by row in a custom column with DAX?
Solved! Go to Solution.
Hi @quinncode !
You can use following DAX to create a custom column which will add blank occurences in Dogs & Cats columns.
Blank = IF(ISBLANK(Pet[Dogs]) || Pet[Dogs] = "", 1, 0)
+ IF(ISBLANK(Pet[Cats]) || Pet[Cats] = "", 1, 0)
Regards,
Hasham
@quinncode use COUNTBLANK() DAX function to get count of blank values(rows) in a column.
DOGS | CATS | BLANKS |
dog | 1 | |
cat | 1 | |
dog | cat | 0 |
Thanks, however I need a count of blanks at the row level like table above
Hi @quinncode !
You can use following DAX to create a custom column which will add blank occurences in Dogs & Cats columns.
Blank = IF(ISBLANK(Pet[Dogs]) || Pet[Dogs] = "", 1, 0)
+ IF(ISBLANK(Pet[Cats]) || Pet[Cats] = "", 1, 0)
Regards,
Hasham
Thank you! Perfect answer.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
7 | |
7 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |