Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. 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 | |
10 | |
10 | |
9 | |
9 |
User | Count |
---|---|
20 | |
13 | |
12 | |
11 | |
8 |