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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Imp Expression

Hi,


I new to QV, Can Anybody help me to understand this expressions please...




1.    if(Sum({$<Year={$(=Max(Year)), $(=Max(Year)-1)}, _History = {1}>} Sales/$(vCurrency)) > Sum({$<Year={$(=Max(Year)), $(=Max(Year)-1)}, _History = {1}>} Budget_$(vCurrency)), 1, -1)



2. if(Space <> 's', Sum ({<Year = {$(=Max(Year)-1)}, Month = {'<= $(=num(Month(vTodaysDate)))'}>}Actual * PL_Flag) + Sum({<Year = {$(=Max(Year)-1)}, Month = {$(=Month(vTodaysDate))}>}[Closing Amount] * BS_Flag),


thanks in advcance



Regards

Venu Gopal

1 Reply
jagan
Partner - Champion III
Partner - Champion III

Hi Venu,

1:

If Sales for Current and Previous years are > Budget for Current and Previous years then 1, else -1 is returned.

2:

If Space is not equal to 's',

then sum of Actual * PL_Flag for previous year till this month + sum of Closing Amount * BS_Flag of previous year current month.

Hope this helps you.

Regards,

Jagan.