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

9 weeks weekly data to be displayed

Hi,

I'm working on the trends to be displayed for 9 weeks data. This is the formula i've used for the calulation. But seems its not working. Can you please help me out of this issue.

Formula used :

  sum({<CalYear=,Weekend=,[Month Year]=,date_con ={'>=$(=addmonths(min(date_con),-2))<=$(=max(date_con))'},[Metric_ID] ={'A_002'} >} Result

)/1000

Regards,

Archana.

Labels (1)
4 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

HI,

     Archana try below code.

sum({<CalYear=,Weekend=,[Month Year]=,date_con ={'>=$(=addmonths(min(date_con),-2))<=$(=max(date_con))'},[Metric_ID] ={'A_002'} ,Month=,Year=,>} Result

)/1000

     You must deselect the Date dimension when you are trying to get the data against the selection made.

     So as shown in above expression kindly deselect the month and year selected.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Not applicable
Author

Is data_con field in the same format as your default DateFormat?

eg 'YYYY-MM-DD'


Not applicable
Author

Hi alex,

The date format is DD-MM-YYY.

Not applicable
Author

Was i saying that field date_con must be in the default date format for your document.

Also if you post example file it wold be easyer to solv your problem.