Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
Check out the May 2024 Power BI update to learn about new features.
User | Count |
---|---|
92 | |
83 | |
62 | |
62 | |
58 |
User | Count |
---|---|
157 | |
118 | |
103 | |
76 | |
66 |