issue with Round()

illusionek

Board Regular
Joined
Jun 21, 2014
Messages
104
Hello!

I am trying to use this (I hoped) simple function in PowerPivot and got below error message:

'ROUND' has the wrong data type or the result is too large or too small.

I am not sure what's the probem, if I remove round() the calculation works well.

Please help!

Code:
=round(([ExpiryDate]-today())/RELATED('Item Master'[Shelf life days]),0)
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
This rings familiar, but I don't recall how/why I saw this :( For lack of a better plan... I would try putting the [ExpiratyDate]-today() into it's own column, to make sure the data type is a decimal. It might be defaulting to a date type and freaking out?
 
Upvote 0
Unfortunately I did not help. It must be an error in PowerPivot with data type date. Funny enough I was getting the same error for RoundUp() but RoundDown() was working fine for the same data set.

I ended up using Fixed()
 
Upvote 0

Forum statistics

Threads
1,224,051
Messages
6,176,086
Members
452,704
Latest member
Michael AA

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top