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.
Hi,
I couldn't find a solution for this, so I really do hope that someone can support with this.
I have calculation where negative values should be converted to zero. Any ideas?
Thanks a lot,
-Kati
Ya we can do .
If ( measure < 0 , 0 , measure )
thats it.
let me know if any further help.
I am wondering if this is the optimal way or if using the function max( measure, 0) performs quicker.
(apologies for ressurecting an old thread!)
Test if the number is negative, and if so, add the abolute value of that number.
That will give you the zero.
IF( [Number] < 0, [Number] + ABS( [Number] ), [Number] )
Cheers,
--Eric.
Have you tried adding a conditional column? See example below. Of course with your own column names. I am the first to admit that this is not very elegant, but it should work until you have a better solution.
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 |
---|---|
10 | |
9 | |
8 | |
8 | |
8 |
User | Count |
---|---|
13 | |
12 | |
11 | |
10 | |
8 |