Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
bhavvibudagam
Creator II
Creator II

=Max(Year) not working

Hi Experts,

Can any one please help me on below issue.

From my date field when i tried to find max(Year) i am getting 2.02k instead of 2018.

Please help me on this. Same issue for Month and Monthname as well max(Month) or Max(Monthname) is also not working.

YEAR ISSUE.png

7 Replies
Anil_Babu_Samineni

You may change your number format from custom to auto.

Capture.png

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
bhavvibudagam
Creator II
Creator II
Author

Hi Anil,

Thanks for your reply. Its working fine in Charts under measures.

But in text object I have to show max(Year)&''&Max(Month) there i am getting the issue.

sudhirpkuwar
Partner - Creator II
Partner - Creator II

Try

Year(Max(Date))

Shiva123
Creator
Creator

can u attach  the file ? may be there is something issue with your date field

honeyasha
Contributor III
Contributor III

You can use =max(Year) in text object  to get single row input .

qlikviewwizard
Master II
Master II

Hi,

My guess is Date filed is like text.

Try like this.

=Max(Year(Date(Date#(Date,'DD/MM/YYYY'))))

Raed this article.

Why don’t my dates work?

Anil_Babu_Samineni

Still i am not seen any error your measure? Can you post screenshot

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