

Creator II
2016-06-14
01:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
round integer number
hi
how can i round integer number?
for example:
i want to show 275612 ------->275000
1325----->1000
123--->100
- Tags:
- round()
1,006 Views
1 Solution
Accepted Solutions

MVP
2016-06-14
01:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
781 Views
7 Replies

MVP
2016-06-14
01:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
u can try this
782 Views

Champion
2016-06-14
01:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Omid,
Try,
=If(Field<1000, Floor(Field,100), Floor(Field,1000))

MVP
2016-06-14
01:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
or
If you have values in dimension or set analysis expression then try like this
Round(Sum(Sales), 1000)
OR
Round(Sales, 1000)


Specialist
2016-06-14
01:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Try
Floor(275612 )
781 Views


Creator II
2016-06-14
01:40 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thank you

Champion
2016-06-14
01:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you check the other two scenarios.? It gives the wrong result.
781 Views

MVP
2016-06-14
01:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As per raj. its gives u best shot through the script.
try below script
Round:
LOAD * INLINE [
a, b
275612, num
1325, dd
123, pp
];
LOAD *,
If(a<1000, Floor(a,100), Floor(a,1000)) as new1
Resident Round;
781 Views
