Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Is there any function in DAX that will allow a .10 difference for decimal numbers when comparing for equality?
For example, I have 2 calculated measures (decimal numbers) and I would like to return the below results:
M1 = 136.50
M2 = 136.40
result= IF (M1=M2, yes, no)
Output: Yes for the above values.
Solved! Go to Solution.
Nevermind, I got the solution
Nevermind, I got the solution
Hi @Anonymous
Can you post the solution here.
Hope it resolves your issue? Did I answer your question? Mark my post as a solution! Appreciate your Kudos, Press the thumbs up button!! Linkedin Profile |
HI @Anonymous
Try
result= IF (M1=M2+0.10 || M1=M2-0.10, yes, no)
Hope it resolves your issue? Did I answer your question? Mark my post as a solution! Appreciate your Kudos, Press the thumbs up button!! Linkedin Profile |
IF (M1=M2+0.10, yes, no)
I would like it to be dynamic since this will return "no" when numbers are the same and should return yes in that case.
for example, when both the measures are 136.50 then it should return yes as well. I would want it to return yes when:
They match
Also when there is a difference .10 (max) else return no