cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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

Accepted Solutions
Highlighted
Microsoft
Microsoft

Re: Issue facing in converting decimal to whole number

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
Highlighted
Resolver II
Resolver II

Re: Issue facing in converting decimal to whole number

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

Highlighted
Microsoft
Microsoft

Re: Issue facing in converting decimal to whole number

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

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Upcoming Events

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Solution Authors
Top Kudoed Authors