Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements

Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

upaliwije
Contributor II

set expression

I have written following set expression. But it is not working. Can you pls look at it rectify if I m wrong

SUM({<DESCRIPTION={'GROSS_PREMIUM'},FMonth_Year={">=Jul-2015"}>}ACTUAL)

1 Solution

Accepted Solutions

Re: set expression

Try creating it like this:

Date(Date#(Dual(MONTH, fMonth) &'-'&Dual(YEAR, fYear), 'MMM-YYYY'), 'MMM-YYYY') as FMonth_Year,

5 Replies
Frank_Hartmann
Honored Contributor

Re: set expression

HI Upali,

can you give some more information?

Which format has FMonth_Year? Is it recognized by Qlikview as a num value or a string?

Is this field connected to a Mastercalendar?

Perhaps try to upload a sample which demonstrates the problem so its much easier to assist you!

upaliwije
Contributor II

Re: set expression

Hi,

This field is connected to a master calender

   Dual(MONTH, fMonth) &'-'&Dual(YEAR, fYear)As FMonth_Year,

Re: set expression

Use this for monthyear

Month(datefield) & '-' & year(datefield) as fmonthyear

SUM({<DESCRIPTION={"GROSS_PREMIUM"},fmonthyear={">=Jul-2015"}>}ACTUAL)


I am not sure, but this expression getting the data for actual where gross premium add above of jul15


Or else send your application please

Life is so rich, and we need to respect to the life !!!

Re: set expression

Try creating it like this:

Date(Date#(Dual(MONTH, fMonth) &'-'&Dual(YEAR, fYear), 'MMM-YYYY'), 'MMM-YYYY') as FMonth_Year,

upaliwije
Contributor II

Re: set expression

Thanks all

Community Browser