Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to express Roundup function

in excel when period = 201102,

Quarter(2011Q1)= LEFT(period,4)&"Q"&ROUNDUP(RIGHT(period,2)/3,0)

But Roundup function is not valid in Qlikview

so how can I change 201102 into 2011Q1 with Qlikview language?

1 Reply
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

This should do it:

          LEFT(period, 4) & "Q" & CEIL(RIGHT(period, 2) / 3, 0)

Regards

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein