Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
I face one type of scenario newly.
I have two measures.
1. [measure1], It returns a value in minus (-254). This measure 1 has the addition of two more measures.
For example: Measure1 = [measure5] + [measure6] + [measure7]
2. [measure2], It returns the same value, which is 254. This measure also has a calculation of two more measures.
Now, I try to sum these two measures to get a value of 0. but the measure returns (1.45E-13).
New = [measure1] + [measure2] //The value return is (1.45E-13).
When I try to subtract these two, it displays the correct answer.
New = [measure1] - [measure2] // The value return is (508)
Why did it happen like this?. How do I get my solution?
Anybody know, please tell
Thanks in advance!
Solved! Go to Solution.
Hi @Vallirajap
1.45E-13 (scientific notation) is equivalent to 0.000000000000145 in decimal form. It is every close to zero. This happens as when doing the calculation, it may actually be calculated with the decimal numbers, so the result will have some small decimal places. To deal with it, we can give the result a specific number of digits after the decimal point. For example, if you want the result to be a whole number, you can use ROUND function
New = ROUND([measure1] + [measure2], 0)
ROUND function (DAX) - DAX | Microsoft Learn
Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!
Hi @Vallirajap
1.45E-13 (scientific notation) is equivalent to 0.000000000000145 in decimal form. It is every close to zero. This happens as when doing the calculation, it may actually be calculated with the decimal numbers, so the result will have some small decimal places. To deal with it, we can give the result a specific number of digits after the decimal point. For example, if you want the result to be a whole number, you can use ROUND function
New = ROUND([measure1] + [measure2], 0)
ROUND function (DAX) - DAX | Microsoft Learn
Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!
Thank You @v-jingzhan-msft,
Thank you for your clear explanation and presentation. Your reply is very useful to us.
Regards,
@Vallirajap
Glad it helps. You're welcome!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
90 | |
82 | |
56 | |
41 | |
37 |