Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
So the point is that whenever you add numbers together and there is a blank value, the result must always be blank. If the blank value does not appear in the sum of the column, then it is a number value.
How can you manipulate this outcome?
Table
Category | value |
a | 1 |
b | |
c | 3 |
The sum(table[value])
total = BLANK
Solved! Go to Solution.
Hi @Anonymous
Interesting and unusual requirement 🙂
You could use COUNTBLANK to determine if at least one BLANK value is present, and if so return BLANK, otherwise return the sum.
A concise way of putting it could be:
SUM modified =
IF (
NOT COUNTBLANK ( 'table'[value] ),
SUM ( 'table'[value] )
)
If the value returned by COUNTBLANK(...) is nonzero, it will be cast to the value TRUE, and then NOT COUNTBLANK(...) will be FALSE.
Does this work for you?
Hi @Anonymous
Interesting and unusual requirement 🙂
You could use COUNTBLANK to determine if at least one BLANK value is present, and if so return BLANK, otherwise return the sum.
A concise way of putting it could be:
SUM modified =
IF (
NOT COUNTBLANK ( 'table'[value] ),
SUM ( 'table'[value] )
)
If the value returned by COUNTBLANK(...) is nonzero, it will be cast to the value TRUE, and then NOT COUNTBLANK(...) will be FALSE.
Does this work for you?
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
11 | |
10 | |
10 | |
10 |
User | Count |
---|---|
16 | |
13 | |
12 | |
11 | |
8 |