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
pprakash
Helper I
Helper I

Issue facing in converting decimal to whole number

Hi Guyz,

 

I am facing issue while converting data type decimal to whole number. when it converted it, it is not showing correct information for example there are 2 columns of decimal no and i added 1 new column in my report adding those 2 columns and change th datatype as whole no but it is giving incorrect information.

 

1st column (datatype decimal)   2 Column(datatype decimal)     New Col(1st col+2nd Clol)(datatype Whole number) 

                            40                                    40.5                                                                80

 

It should be 81 . i have also changed the datatype from edit query also but problem still the same. please help

 

 

 

1 ACCEPTED SOLUTION
v-yulgu-msft
Employee
Employee

Hi @pprakash ,

 

The unexpected total value might be related to the source data of column2. You can see the difference from below screenshot. 

1.PNG

2.PNG

 

To deal with this behavior, you can add a calculated column with below DAX:

Column = ROUND(Table1[Column1],1)+ROUND(Table1[Column2],1)

4.PNG3.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
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

2 REPLIES 2
v-yulgu-msft
Employee
Employee

Hi @pprakash ,

 

The unexpected total value might be related to the source data of column2. You can see the difference from below screenshot. 

1.PNG

2.PNG

 

To deal with this behavior, you can add a calculated column with below DAX:

Column = ROUND(Table1[Column1],1)+ROUND(Table1[Column2],1)

4.PNG3.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @pprakash 

 

I did the same thing and got 81.

 

Could you share the file via dropbox or something so I can take a closer look?

 

I made them 2 decimal places to make sure it was 4.5 and not 4.499999 and rounded up as that might make the difference.

Screenshot_8.png

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.