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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to remove timing?

Hi~

i have a plan start time table inside my qlikview. my boss want to look at the keys that break done by month. but if u see the file there has different timing in the list box so how to remove the timg only left month so i can do the chart for keys.

Labels (1)
9 Replies
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this

LOAD

*,

Date(Date#(Trim(Left(Trim(SubField(Only([Plan_End_Time/fieldvalue]), ',', 2)), 11)), 'D MMM YYYY')) AS Date

FROM DataSource;

Regards,

Jagan.

Not applicable
Author

Thanks for helping! but it did not work out.

jagan
Partner - Champion III
Partner - Champion III

Hi,

Do you want fetch only date from this column Plan_End_Time/fieldvalue?  Then this works

Date(Date#(Trim(Left(Trim(SubField(Only([Plan_End_Time/fieldvalue]), ',', 2)), 11)), 'D MMM YYYY'))


I am able to retrieve date.

Regards,

Jagan.

Not applicable
Author

So where u put the syntax? in edit script?

Not applicable
Author

Use Date(Floor())

jagan
Partner - Champion III
Partner - Champion III

HI,

I tried it in a Text Object, the same should work in Load script also.  Please find attached file for solution.

Regards,

Jagan.

ashfaq_haseeb
Champion III
Champion III

Hi,

Go through the attached file.

Regards

ASHFAQ

Not applicable
Author

Sorry, i cant open ur file as my qlikview is personal edition. can i know which text box? is it "expression text box"?

jagan
Partner - Champion III
Partner - Champion III

Hi,

It is a separate Text Object, select any time and put this in text object

=Date(Date#(Trim(Left(Trim(SubField(Only([Plan_End_Time/fieldvalue]), ',', 2)), 11)), 'D MMM YYYY'))

Regards,

jagan.