Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

What is the difference between these set analysis expressions ?

Hi all,

I have two text boxes to display the output of following expressions respectively.

1.

=money(Sum({$<[Profit Center]={'216NDD','216OS1'},MonthNumPostDate={$(varPrevCurrMonthNo)},YearNumPostDate={$(varCurrentYear)},WeekNumPostDate={"*"}-{$(varCurrentWeek)}>} [In company code currency POS])) 

2.

=money(Sum({$<[Profit Center]={'216NDD','216OS1'},MonthNumPostDate={"<=$(=varPrevCurrMonthNo)"},YearNumPostDate={$(varCurrentYear)}>} [In company code currency POS])) 

NOTE:

varPrevCurrMonthNo = if(num(Day(today()))<7,$(varPreviousMonth),$(varCurrentMonth))

varCurrentYear = num(Year(Today()))

varCurrentWeek = num(Week(Today()))

Basically i want to know the difference between MonthNumPostDate={$(varPrevCurrMonthNo)} and

MonthNumPostDate={"<=$(=varPrevCurrMonthNo)"}


Please explain.



-James

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

MonthNumPostDate={$(varPrevCurrMonthNo)}

The result will be based on MonthNumPostDate=varPrevCurrMonthNo


MonthNumPostDate={"<=$(=varPrevCurrMonthNo)"}

The result will be based on MonthNumPostDate<=varPrevCurrMonthNo



View solution in original post

4 Replies
MK_QSL
MVP
MVP

MonthNumPostDate={$(varPrevCurrMonthNo)}

The result will be based on MonthNumPostDate=varPrevCurrMonthNo


MonthNumPostDate={"<=$(=varPrevCurrMonthNo)"}

The result will be based on MonthNumPostDate<=varPrevCurrMonthNo



Not applicable
Author

But in the second expression it is MonthNumPostDate={"<= but not MonthNumPostDate<={"=  know ? Then how come it will take all the values of MonthNumPostDate less than the particular month no. ?

-James

MK_QSL
MVP
MVP

in QV set analysis... <= is written by

= {"<="}

Not applicable
Author

Ok, Thanks a lot Man !

-Jamy