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: 
SplittFPS
Contributor II
Contributor II

Get specific date format 22.07.2025 -> 2026007

I want to use a button to filter a specific date.

For example: the current date would be 22.07.2025 and want the output to be 2026007 and 22.12.2023 would be 2024012

I did one where I only needed the year which I did with  =Year(now())+1 and this worked 

Any ideas?

Labels (5)
1 Solution

Accepted Solutions
adilio_silva
Contributor III
Contributor III

Try this:

=Year(Today())*1000 + Month(Today())

2025-07-22_10h28_18.png

View solution in original post

5 Replies
brunobertels
Master
Master

Hi 

may be this 

 

year(date(date#('22.07.2025','DD.MM.YYYY')))+1&

num(month(date(date#('22.07.2025','DD.MM.YYYY'))),'000')

 

brunobertels_0-1753181996890.png

 

Or
MVP
MVP

Year(YourDate) * 1000 + Month(YourDate)

 

SplittFPS
Contributor II
Contributor II
Author

Hi thanks, this works for a specific date but is there a way so it takes the current date every time like in the formula for the year which I used?

adilio_silva
Contributor III
Contributor III

Try this:

=Year(Today())*1000 + Month(Today())

2025-07-22_10h28_18.png

SplittFPS
Contributor II
Contributor II
Author

This worked, Thank you