Forum Discussion
Scaffnull
4 years agoHelper I
Rounding whole numbers formula DAX
Hi all, Is there a way to use the DAX formula to round whole numbers by only changes of 5? So if I have 11 I want the result to be 10, if I get 14 I want the result to be 15. Appreciate the help!
- 4 years ago
Not sure what you mean. You can use the column or expression value in the MROUND function. For example,
NewColumn = MROUND(Table[NumberColumn], 5)
Pat
mahoneypat
4 years agoMicrosoft Employee
Not sure what you mean. You can use the column or expression value in the MROUND function. For example,
NewColumn = MROUND(Table[NumberColumn], 5)
Pat
Scaffnull
4 years agoHelper I
mahoneypat Simple as that! Worked like a charm. All my values that are between 1-4 rounds to either 5 or 0. (24 rounds to 25, 33 rounds to 35, 11 round to 10 etc,.) Perfect, thanks!