Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
if([Req2 Date]<[Run2 Date], MonthStart([Run2 Date],0)
why it is giving blank spaces when i use it as straight table expression
Qlikss Sugessttttt
Or this:
Date(If([Req2 Date]<[Run2 Date], MonthStart([Run2 Date]),0)
Or you can set the format on the numbers tab to show as Date
Are there more than one Req2 Date or Run2 Date for each dimension value? If that's the case, you will need to use some sort of Aggregation to know which of the multiple dates to use (like Min or Max)
hi sunny
req2 date run2 date ---- dimensions
if([Req2 Date]<[Run2 Date], MonthStart([Run2 Date],0) -- Expression
What i have to do
and i have 6000 rows for each date field
If those are dimension, then we don't have to worry about aggregations. Next thing to check is to see if Req2 Date and Run2 Date are read as date by qlikview or not. If they are strings, then the if statement will not work and so will Monthstart
if([Req2 Date]<[Run2 Date],1,0)
it is working fine for this expression
but when i add monthstart fucnction it is not working
Can you share a screenshot of the two expressions
1) if([Req2 Date]<[Run2 Date], MonthStart([Run2 Date],0)
2) if([Req2 Date]<[Run2 Date],1,0)
Oh you have a missing parenthesis, try this
if([Req2 Date]<[Run2 Date], MonthStart([Run2 Date]),0)
But it is coming in number format .. why it is not coming date format