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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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