Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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