Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Expression Help

Hi All,

I need an expression for  Max of dateid for system = 'XYZ'...

MAX({<System = {"XYZ"}>}(date( Date ID])))..it is not displaying the date .Can anyone help ?

19 Replies
m_woolf
Master II
Master II

What is it displaying?

Not applicable
Author

it is not displaying anything...showing empty

m_woolf
Master II
Master II

Can you post a sample qvw?

m_woolf
Master II
Master II

You have a right bracket ] with no matching left bracket.

MK_QSL
MVP
MVP

MAX({<System = {'X','Y','Z'}>}[Date ID]) or

MAX({<System = {'XYZ'}>}[Date ID])

Not applicable
Author

Got the answer....MAX({<System = {'XYZ'}>}[Date ID]) ..also i need to asdd the period some thing like this format ..

01/01/2013,PeriodP1 ....I have the period field...

How can we assign period ?

juleshartley
Specialist
Specialist

Do you mean that you want to filter the results to show where PeriodP1 = '01/01/2013'?

juleshartley
Specialist
Specialist

If so, you need to use syntax similar to :

MAX(

{

<System={'XYZ'},

PeriodP1={$(vDate)}

}

[Date ID]

)

where vDate is set to the filter date. But be careful - dates are trickly to get right!

MK_QSL
MVP
MVP

What is the comparison criteria for PeriodP1?