Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Average per month with a calculated dimension

Hi all QV users,

I've encountered a problem in Qlikview.

I have constructed an ImR chart in Qlikview and used the following expression to calculate the average:

avg(TOTAL aggr(sum(johan),Month))

It works fine but now am I trying to do the same with a calculated dimension instead of Month, this is the dimension I have:

=date(monthstart(Notif_date),'MMM YY')

Does anyone know how I combine these to two? I want to somehow replace Month in the first expression with the calculated dimension above.

Thanks!

4 Replies
Not applicable
Author

To make it easier, why don't you add the function "=date(monthstart(Notif_date),'MMM YY')" into your script ?

This way you'll avoid to get a calculated dimension, and your results will be faster ?

Regards,

Sébastien

Not applicable
Author

Ok,

how do I add it into my script?

thanks

spividori
Specialist
Specialist

Hi,

In the script:

date(monthStart(Notif_date),'MMM YY') as MonthYear

Regards.

Not applicable
Author

Thanks!

It solved my problem.

Regards