Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Help

Hi Everyone,

Need Your help!!

I want all the emp who have claimed for the current month and those who have submitted the same bill on the previous month.

Attached the sample data.

Thanks and Regards,

Priya

1 Reply
maxgro
MVP
MVP

result

expression     

if(count({$ <ClaimYearMonth={"$(=date(max(ClaimDate),'YYYYMM'))"}>} ClaimAmount)>=1

and

count({$ <ClaimYearMonth={"$(=date(AddMonths(max(ClaimDate),-1),'YYYYMM'))"}>} ClaimAmount)>=1

,1,0)

1.png

script

t:

LOAD

EmpID, BillNo, ClaimDate, ClaimAmount, date(ClaimDate, 'YYYYMM') as ClaimYearMonth

FROM DATA.xlsx (ooxml, embedded labels, table is Sheet1);