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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Month end data in straight table

Hi,

can any body help how to get the last day sales of every month in one field in straight table

regards

Mahesh

Labels (1)
2 Replies
Not applicable
Author

Flagging the month end date in the script using the MonthEnd function and a simple set analysis expression in the straight table will perhaps produce the results you are looking for.

Script Example

IF(YourDate = MonthEnd(YourDate),1,0) as MonthEndFlag

Month End Sales Field

=SUM({$<MonthEndFlag={1}>}SalesAmount)

Not applicable
Author

Let vMend = MonthEnd(Today()) and add based on the flag.