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: 
saumyashah90
Specialist
Specialist

Calendar problem

if i want to add date condition in calclated dimension for field name Dt

what should be my expression?

I have D

Dt={'>=$(Start_Date <=$(End_Date)' }

6 Replies
sushil353
Master II
Master II

Use

Dt={">=$(Start_Date) <=$(End_Date)'"}

Gabriel
Partner - Specialist III
Partner - Specialist III

Hi,

even though am not sure I fully comprehend your question, however, I will suggest you wrap your expression up in IF function.

Also, if you can possibly explain more in details what you want, might be helpful to the communnity.

Regards,

Gabriel

saumyashah90
Specialist
Specialist
Author

Its not showing any thing...expression is also not ok

saumyashah90
Specialist
Specialist
Author

See we have calendar option in which we have two variables Start_Date nd End_Date ,Now we are using a straight table in which there is one dimesion as "Dt"

So we want this dimesnion to fall in between those calendar conditions or range i.e Start_Date & End_Date.

er_mohit
Master II
Master II

try this

= '>=' & vStartDate & '<=' & vEndDate

here,vStartDate and  vEndDate is my variable

jagan
Partner - Champion III
Partner - Champion III

Hi Saumya,

Try like this

=Aggr(If(Dt >= Start_Date AND Dt <= End_Date, Dt, Null()), Dt))

Hope this helps you.

Regards,

Jagan.