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.
Hi all,
I'm struggeling to do something which I thought would be fairly easy to do (at least it is in Excel), but I cannot find my way around it in PowerBI.
I need two additional columns in my dataset (marked with bold) based on the imported data. I need one column to count the number of blank cells and one with filled cells per row. The first column (in italic) should not be counted. The data is all formated as text.
How is this possible?
My dataset looks similar to this:
Material | Column A | Column B | Column C | Column D | Column E | Filled | Blank |
1231 | X | X | X | X | 4 | 1 | |
1242 | X | X | X | 3 | 2 | ||
1255 | X | X | X | X | X | 5 | 0 |
1266 | X | 1 | 4 |
Solved! Go to Solution.
I cannot thing of any other way using DAX.
If you want to do it directly on Power Query you can check the following thread:
https://community.powerbi.com/t5/Desktop/Count-non-blank-cells-across-a-range-of-columns/m-p/494271
Try something like this:
Thanks for your suggestion! Do you know if it can be done on a range like 'ColumnA: ColumnE'? Some of the datasets has more than 50 columns?
I cannot thing of any other way using DAX.
If you want to do it directly on Power Query you can check the following thread:
https://community.powerbi.com/t5/Desktop/Count-non-blank-cells-across-a-range-of-columns/m-p/494271
@themistoklis Solving it via the Power Query was a great idea. I managed to get the additional count columns needed by this.
Thanks for your support!
Also you can try something like this:
Blanks =
VAR ColumnA = INT(Table[Column A]= BLANK()) -- OR IF (ISBLANK(Table[Column A]), 1, 0)
VAR ColumnB = INT(Table[Column B]= BLANK())
VAR ColumnC = INT(Table[Column C]= BLANK())
RETURN ColumnA + ColumnB + ColumnC
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
72 | |
67 | |
51 | |
38 | |
26 |
User | Count |
---|---|
88 | |
52 | |
45 | |
39 | |
38 |