Forum Discussion
ROUNDUP not working as expected
- 2 years ago
Hi Tob_P
It seems that your issue is related to function ROUNDUP.
As in your example value for one of your VAR is 7,50 (Metres) so you probably expect 8,00? Which should lead later to 64 (8*8=64).
Still, function ROUNDUP in DAX function with specific behaviour for your case 7,50. Check link with example
To get 64 in your case just adjust your part with ROUND (no UP at and) and 0 for end.
VAR Courses = ROUND('SL Height Parameter'[Courses], 0)
Hi Tob_P red coloured part below is measure definition, not column definition as in VAR Metres. It should be probably as in m2_test, assuming the data for both VAR's coming from single tableb and Courses is column
Thank you, gave that a go but no luck. Courses isn't actually a column within a table - I'm using Parameters so it's the Parameter Value divide by another measure, so I wonder if that's the issue that it won't round up accurately?
- some_bih2 years ago
Community Champion
Hi Tob_P please share model and relationships for more possible solutions. If both VAR are columms, it should be simple.
- Tob_P2 years ago
Helper V
Hi some_bih
Link to .pbix...
https://drive.google.com/file/d/1PUQzM_7DMh_y5Yp8qbi-PMFWWkekL1RB/view?usp=sharing
The bottom two sections are what I'm referring to.
Thanks