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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
prabhas277
Creator
Creator

functions

Hi,

left('7/8/2015',Index('7/8/2015','/',-1)-1) this is my function that output is 7/8 .But my requirement is i want only 8.

how we can achive it?

17 Replies
MK_QSL
MVP
MVP

=TextBetween('7/8/2015','/','/')

prabhas277
Creator
Creator
Author

HI sorry the exact question is

left('7/8/2015',Index('7/8/2015','/',2)-1) this is my function that output is 7/8 .But my requirement is i want only 8.

how we can achive it?

alexandros17
Partner - Champion III
Partner - Champion III

=Mid('7/8/2015',Index('7/8/2015','/',-1)-1,1) 

prabhas277
Creator
Creator
Author

hi thanks to sharp reply

by using left and index function how can get it?

veidlburkhard
Creator III
Creator III

Hi prabhas

You can use the function Textbetween or Subfield:

In your case Textbetween(Date, '/', '/') = 8

or

Subfield(Date, '/', 2) = 8

Regards

Burkhard

prabhas277
Creator
Creator
Author

hi

by using left and index function how we can get it?

brian_booden
Partner Ambassador
Partner Ambassador

Hi,

How about if it is a string:

Mid('7/8/2015', Index('7/8/2015', 8), 1)

or if the field is a date:

Num(Month(Date('7/8/2015')))

Regards,

Brian

florentina_doga
Partner - Creator III
Partner - Creator III

or

subfield('7/8/2015','/',1)

alexandros17
Partner - Champion III
Partner - Champion III

I think it is not possible because left returns the left part of a string strarting from a position ...