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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
deepakqlikview_123
Specialist
Specialist

Identifying month date year from given field.

Hello team,

Please find attached QVW.

Can u plz suggest how to indentify year,month,date from column title.

Thanks,

1 Solution

Accepted Solutions
its_anandrjs
Champion III
Champion III

It is working perfect from my side also you can try with this

LOAD Title,

     Day(Date#(Left(Title,2),'DD')) as Day,

     Month(Date#(Title,'DD MMMM YYYY')) as Month,

     Year(Date#(Right(Title,4),'YYYY')) as Year,

     [CDMS AUDIT LOG],

     [CDMS WSS CONTENT],

     [CDMSLive DATABASE],

     [LOG size CDMS AUDIT LOG],

     [LOG size CDMS WSS CONTENT],

     [LOG size CDMSLive Database],

     [CDMS AUDITLOG VESPA],

     [CDMSLIVE_VESPA DATABASE],

     [LOG size CDMS AUDITLOG VESPA],

     [LOG size CDMSLIVE_VESPA Database]

FROM

(ooxml, embedded labels, table is [CDMS & Vespa Values in Column]);

View solution in original post

19 Replies
Anonymous
Not applicable

Here you go,

If you want to create a separate List boxes create the expressions like below

Year

right(Title,4)

Month:

TextBetween(Title,' ',' ')

Date:

TextBetween(Title,'',' ')

Not applicable

You mean extracting the information from Excel file name?

Regards,

Prabhu

antoniotiman
Master III
Master III

Hi,

Try

Date(Date#(Title,'DD MMM YYYY'))

Month(...............

Year(.........................................

ashfaq_haseeb
Champion III
Champion III

Hi,

Add the below code in back-end script.

LOAD Title,

     [CDMS AUDIT LOG],

     date(date#(Title,'DD MMMM YYYY')) as Date,

     Month(date#(Title,'DD MMMM YYYY')) as Month,

     year(date#(Title,'DD MMMM YYYY')) as Year,

     [CDMS WSS CONTENT],

     [CDMSLive DATABASE],

     [LOG size CDMS AUDIT LOG],

     [LOG size CDMS WSS CONTENT],

     [LOG size CDMSLive Database],

     [CDMS AUDITLOG VESPA],

     [CDMSLIVE_VESPA DATABASE],

     [LOG size CDMS AUDITLOG VESPA],

     [LOG size CDMSLIVE_VESPA Database]

FROM

(ooxml, embedded labels, table is [CDMS & Vespa Values in Column]);

Regards

ASHFAQ

anbu1984
Master III
Master III

Check this

Not applicable

num(SubField(Title,' ',1),00)  -> Day

SubField(Title,' ',2) -> Month

SubField(Title,' ',1) -> Year

Regards,

Prabhu

Anonymous
Not applicable

Hi,

Try below,

Date(Date#(Num(Trim(Left(Title, 2)), 00)&Left(Trim(Mid(Title, 3, Len(Title)-6)),3)&Trim(Right(Title, 4)), 'DDMMMYYYY')) as Date

its_anandrjs
Champion III
Champion III

Try with

For Year

Right(Title,4)

Or

Date#(Right(Title,4),'YYYY')

For Day

Left(Title,2)

Or

Date#(Left(Title,2),'DD')

For Month

PurgeChar(Title,0123456789)

Or

Month(Date#(Title,'DD MMMM YYYY'))

For Date

Date#(Title,'DD MMMM YYYY')

antoniotiman
Master III
Master III

QV with Year,Month,Date