Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
user1462
Frequent Visitor

Handling very small numbers

Hi everyone!

I'm having a problem with the very small numbers in my data;
user1462_0-1665564037085.png

and the measures I created with them look like this;
user1462_1-1665564095745.png

I'm trying to get rid of this scientific notation, and I tried some suggestions I've found here in Community, but they didn't solve my problem.

The first suggestion was converting the measure to Currency format, but in that case, there are still a lot of zeros, is there any way that you can share with me to decrease the number of zeros?
user1462_3-1665564539831.png

And I don't understand why it's between parenthesis? Couldn't remove them either. And on the other hand, there shouldn't be a dollar sign here or any sign actually I just need to see the value only, but if it's not possible to use it without the currency sign, it should be € and when I change it, it returns only 0.

user1462_6-1665564738383.png

So I really don't know what to do with these tiny values, if you can help me with any solution, Dax formula, or any way to round it for example, I really really appreciate it.

Thank you very much in advance!

1 ACCEPTED SOLUTION
v-jianboli-msft
Community Support
Community Support

Hi @user1462 ,

 

Based on your description, I have created a simple sample:

vjianbolimsft_0-1665996719089.png

Please try:

Measure = 
var _a = FORMAT(SUMX('Table',[Column1]),"Scientific")
var _b = FIND("-",_a)
var _c = VALUE(RIGHT(_a,LEN(_a)-_b))
var _d = FORMAT(SUMX('Table',[Column1]),"General Number")
return RIGHT(_d,LEN(_d)-_c-1)

Final output:

vjianbolimsft_1-1665996786163.png

Note: the final output is not a number , it is text type, if you want number type, you need to use value() function.

 

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-jianboli-msft
Community Support
Community Support

Hi @user1462 ,

 

Based on your description, I have created a simple sample:

vjianbolimsft_0-1665996719089.png

Please try:

Measure = 
var _a = FORMAT(SUMX('Table',[Column1]),"Scientific")
var _b = FIND("-",_a)
var _c = VALUE(RIGHT(_a,LEN(_a)-_b))
var _d = FORMAT(SUMX('Table',[Column1]),"General Number")
return RIGHT(_d,LEN(_d)-_c-1)

Final output:

vjianbolimsft_1-1665996786163.png

Note: the final output is not a number , it is text type, if you want number type, you need to use value() function.

 

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

PurpleGate
Resolver III
Resolver III

To decrease the number of zeros you would have to multiply the number by 10,000 for example.  

 

To not have to use currency, you could just use Decimal number?

It's in parenthesis because it is a negative number. To remove a negative value you can multiply by -1

PurpleGate_0-1665577951000.png

 

Or in your DAX formula you can add 

format('value',"0.000")

 

Makes no sense

Hello @PurpleGate 
Thank you very much for the answer!

I've already tried to convert the data type to a decimal number instead of the currency, but this is still how it looks when it's decimal; 

user1462_0-1665634258924.png

so that's still not what I want actually, and the Dax formula you shared with me also gives zero;

user1462_1-1665634416117.png

Unfortunately, these were not solutions to my problem, and do you have any idea about the euro sign issue? It also returns only 0 when I convert it from dollar to euro

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors