Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Lucky1
Creator
Creator

Rounded up in table

Hi I have values like 374.4 i want to round this upto 375.

whatever value after 374.01 round to next value.

if i have 3.02 it should show 4

how to do this my dimension expression is 

if( STATUS = 'PROPOSED_POLICY_NON_COMPLIANT', '* Reda *', DAYSOVERDUE)

Labels (5)
2 Solutions

Accepted Solutions
Mark_Little
Luminary
Luminary

The function you are going to need is the Ceil.

https://help.qlik.com/en-US/qlikview/May2023/Subsystems/Client/Content/QV_QlikView/ChartFunctions/Ge...

This would need to wrap in the relevant if to meet your condition to round up.

Something like

IF(Subfield(Value,'.',2) = 01 then, Value, CEIL(Value)) AS Value.

Value being you Field name with the number in.

View solution in original post

Lucky1
Creator
Creator
Author

I found solution by using below logic for roundup

if( STATUS = 'PROPOSED_POLICY_NON_COMPLIANT', '* Reda *', Ceil(DAYSOVERDUE))

View solution in original post

2 Replies
Mark_Little
Luminary
Luminary

The function you are going to need is the Ceil.

https://help.qlik.com/en-US/qlikview/May2023/Subsystems/Client/Content/QV_QlikView/ChartFunctions/Ge...

This would need to wrap in the relevant if to meet your condition to round up.

Something like

IF(Subfield(Value,'.',2) = 01 then, Value, CEIL(Value)) AS Value.

Value being you Field name with the number in.

Lucky1
Creator
Creator
Author

I found solution by using below logic for roundup

if( STATUS = 'PROPOSED_POLICY_NON_COMPLIANT', '* Reda *', Ceil(DAYSOVERDUE))