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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Ns7703
Contributor III
Contributor III

Regarding Formatting

There is a field SFS_Rating and it has values 5-,5+,6-,6+ and so on . I am using this field in gauge chart. What is the correct expression for this so that it show the correct value. I am attaching the screenshot. I need to show this field in Gauge chart . What expression should I use for this?

Labels (1)
1 Solution

Accepted Solutions
JandreKillianRIC
Partner Ambassador
Partner Ambassador

Hi @Ns7703 

This value is currently seen as a text field. I would change this to make it a number. See script below 

Load 
	No,
	SFS_Rating as SFS_Rating_Original,
    IF(Len(SFS_Rating) = 2, 
    	Left(SFS_Rating, 1) * (Right(SFS_Rating, 1)&1), 
        	SFS_Rating) as SFS_Rating;
Load * Inline [
SFS_Rating, No
5-, 1
4+, 2
3-, 3
5+, 4
8+, 5
6-, 6];

 

For the gauge - I would use a sum of the new rating field (Number field) but change the min and max levels. 

JandreKillianRIC_1-1737449236471.png

Result should be something like this. 

JandreKillianRIC_2-1737449250234.png

 

Regards Jandre

 

Mark the solution as accepted that solved your problem and if you found it useful, press the like button! Check out my YouTube Channel | Follow me on LinkedIn

View solution in original post

3 Replies
JandreKillianRIC
Partner Ambassador
Partner Ambassador

Hi @Ns7703 

This value is currently seen as a text field. I would change this to make it a number. See script below 

Load 
	No,
	SFS_Rating as SFS_Rating_Original,
    IF(Len(SFS_Rating) = 2, 
    	Left(SFS_Rating, 1) * (Right(SFS_Rating, 1)&1), 
        	SFS_Rating) as SFS_Rating;
Load * Inline [
SFS_Rating, No
5-, 1
4+, 2
3-, 3
5+, 4
8+, 5
6-, 6];

 

For the gauge - I would use a sum of the new rating field (Number field) but change the min and max levels. 

JandreKillianRIC_1-1737449236471.png

Result should be something like this. 

JandreKillianRIC_2-1737449250234.png

 

Regards Jandre

 

Mark the solution as accepted that solved your problem and if you found it useful, press the like button! Check out my YouTube Channel | Follow me on LinkedIn

Ns7703
Contributor III
Contributor III
Author

Thankyou!!

JandreKillianRIC
Partner Ambassador
Partner Ambassador

Hi @Ns7703 

Only a pleasure! Glad it was the solution to the issue you were facing! 

 

Mark the solution as accepted that solved your problem and if you found it useful, press the like button! Check out my YouTube Channel | Follow me on LinkedIn