Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

My rounding on quarter expression does'nt work

Hi,

This

='HEADLINES FOR ' & 'Q' & ceil(month(AddMonths(today(),-3)))/3 &'-' & year(addmonths(today(),-3)) &' - 

looked like this before October 2016

HEADLINES FOR Q2 - 2016 -

If now looks like

HEADLINES FOR Q2.33333333333333333 - 2016 -

What's gone wrong after an extra month was added?

Regards

LAK

1 Solution

Accepted Solutions
sunny_talwar

May be try this:

='HEADLINES FOR ' & 'Q' & Ceil(Month(AddMonths(Today(), -3))/3) &'-' & year(addmonths(today(),-3)) &' -

View solution in original post

8 Replies
sunny_talwar

May be try this:

='HEADLINES FOR ' & 'Q' & Ceil(Month(AddMonths(Today(), -3))/3) &'-' & year(addmonths(today(),-3)) &' -

Anonymous
Not applicable
Author

Ok, that works, what did you change and will the rounding stay the same next quarter? Q4 - 2016?

Anonymous
Not applicable
Author

Does the 'T' in Sunny T, stand for Turbo as you are so fast with your answers.

I've got a unanswered question from around 10 days ago, have you had a look?

sunny_talwar

Just changed the placement of one of the closing parenthesis

From

='HEADLINES FOR ' & 'Q' & ceil(month(AddMonths(today(),-3)))/3 &'-' & year(addmonths(today(),-3)) &' -

To

='HEADLINES FOR ' & 'Q' & ceil(month(AddMonths(today(),-3))/3) &'-' & year(addmonths(today(),-3)) &' -

sunny_talwar

T is for my last name Talwar

Anonymous
Not applicable
Author

yeah saw that.

Anonymous
Not applicable
Author

Sharp like a sword.

sunny_talwar

Yes so the difference was that previously you were ceill and then dividing. and now you are dividing and the ceiling.