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: 
rmuhammad
Creator
Creator

p() and max()

Hi

How do I select only the select month + dec from previous years? I tried but it didnt work

I am getting all Decembers but missing current select month

Count({<[Year/Month],Period=

,Period={'=$(=max(Period))'}

,Period*=P({1<MONTH={$(=12)}>}Period)

,STATUS_CODE={'ACTIVE'}

,REG_TEMP={'REG'}

>} distinct EMPLID)

selection.png

1 Solution

Accepted Solutions
sunny_talwar

May be this

Count({<[Year/Month], Period = {"$(=Max(Period))"}+p({1<MONTH={'12'}>}), STATUS_CODE = {'ACTIVE'}, REG_TEMP = {'REG'}>} DISTINCT EMPLID)

View solution in original post

1 Reply
sunny_talwar

May be this

Count({<[Year/Month], Period = {"$(=Max(Period))"}+p({1<MONTH={'12'}>}), STATUS_CODE = {'ACTIVE'}, REG_TEMP = {'REG'}>} DISTINCT EMPLID)