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

set expression

Hi Experts,

How to write the expression for the year to last month end

for example now the current month is June if i click on year then i want from 01/01/2017  to may end.

How to writhe expression for that?

5 Replies
lironbaram
Partner - Master III
Partner - Master III

hi

assuming you have a date field called DATE

it should be something like

sum({<DATE={'<=$(=date(floor(monthend(addmonths(today(),-1))))'}>}SALES)

Anil_Babu_Samineni

You can do with YearStart() and YearEnd() functions

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
prma7799
Master III
Master III

Please check

=sum({$<[Date] = {"<=$(MonthEnd(AddMonths([Date],-1)))"} >}[Sales])

antoniotiman
Master III
Master III

{<Date={'>=$(=StartYear(Today()))'}>}

Assuming Your format date is DD/MM/YYYY or MM/DD/YYYY

sasiparupudi1
Master III
Master III

Count(

{<DateField={'>YearStart(today(2)) <Monthend(today(2),-1)'}>}

YourFlag)