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: 
Anonymous
Not applicable

Issue in calculate average of month for semi addtive measure

Hello Expert,

I have measure stock which I want to do sum for all other dimension except date.

for date I want average.

So I write expression sum(stock)/(maxdate-mindate).

This is working if I know date range

Now i want to show monthly trend for stock.So how can I get each month start date and end date in expression.

I wan on the fly strt date and end date depends on my dimension month.

Thanks ,

Kiran

1 Reply
datanibbler
Champion
Champion

Hi,

there are functions for this in QlikView. Monthend(), Monthstart(), Addmonths().

For instance, if you write Monthstart(Today(), -1), that is the 1st of November - the start of the previous month.

Will that help you?`

Best regards,

DataNibbler