March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
16 | |
12 | |
9 | |
7 |
User | Count |
---|---|
38 | |
32 | |
28 | |
12 | |
11 |