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

Announcements
AWS Degraded - You may experience Community slowness, timeouts, or trouble accessing: LATEST HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
brijeshvma
Partner - Creator
Partner - Creator

rename the class function value

Hi all I am using a Class function for Price Bucket :

Dual(Replace(Class(KeepChar(SubField(SearchVertical,':',2),'0123456789'),2500000),'<= x <', 'To'),

Class(KeepChar(SubField(SearchVertical,':',2),'0123456789'),2500000))

So i am Getting a value like

0 to 2500000

25000000 to 5000000

But i want to show figure like

o to 2500K

2500K To 5000K

Kinldly help me achieve this.

i have a attached a image of bar as well'

1 Solution

Accepted Solutions
sunny_talwar

May be this:

Dual(

SubField(Class(KeepChar(SubField(SearchVertical,':',2),'0123456789'),2500000),'<= x <', 1)/1000 & 'K To ' &

SubField(Class(KeepChar(SubField(SearchVertical,':',2),'0123456789'),2500000),'<= x <', 2)/1000 & 'K',

Class(KeepChar(SubField(SearchVertical,':',2),'0123456789'),2500000))

View solution in original post

4 Replies
sunny_talwar

May be this:

Dual(

SubField(Class(KeepChar(SubField(SearchVertical,':',2),'0123456789'),2500000),'<= x <', 1)/1000 & 'K To ' &

SubField(Class(KeepChar(SubField(SearchVertical,':',2),'0123456789'),2500000),'<= x <', 2)/1000 & 'K',

Class(KeepChar(SubField(SearchVertical,':',2),'0123456789'),2500000))

mightyqlikers
Creator III
Creator III

use


KeepChar(SubField(SearchVertical,':',2),'0123456789')


in the back end and create a field divide by 1000


and use that in front end using class function.


$@M

brijeshvma
Partner - Creator
Partner - Creator
Author

Thankks Sunny

swuehl
MVP
MVP

Or maybe (since there is not much benefit to use the class function then in your case):

Dual(

Floor(KeepChar(SubField(SearchVertical,':',2),'0123456789'),2500000)/1000 & 'K To ' &

Ceil( KeepChar(SubField(SearchVertical,':',2),'0123456789'),2500000)/1000 & 'K',

Floor(KeepChar(SubField(SearchVertical,':',2),'0123456789'),2500000)

)