Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

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,

View solution in original post

5 Replies
Frank_Hartmann
Honored Contributor II

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

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)

Re: set expression

Try creating it like this:

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

View solution in original post

upaliwije
Contributor II

Re: set expression

Thanks all