Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
shekhar_analyti
Specialist
Specialist

Dynamically changing count of chr(9734) .Is this possible ?

Hi All ,

chr(9734) is actually star sign .


chr.PNG


My requirement : Based on number value present in column c .. count of start in right column should change .

Ex- For Andrea in column c value is 1 , so in next column there should be a single star , which currently is .

But if c value is 2 (Barbara) ,then there should be two stars and likewise .

Note: I do not want to write multiple if for each values in column c .

Thanks & Regards

Shekar

1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

Repeat(chr(9734),YourExpression)

You would probably want to do this on a percentage scale in your actual implementation

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

7 Replies
shekhar_analyti
Specialist
Specialist
Author

****** count of star

Anil_Babu_Samineni

May be this?

If(Aggr(Sum(c), Customer), Repeat(Chr(9734), Aggr(Sum(c), Customer)))

Or this

If(Sum(c), Repeat(Chr(9734), Sum(c)))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Not applicable

hi,

use according to below code.

load *, pick(match(c,1,2,3,4,5,6,7,8,9,10),'*','**','***','****','*****','******','*******','********','*********','**********') as Rating,

Repeat('*',c) as rating_new Inline [

customer, c

a,1

b,2

c,3

d,4

e,5

f,6

g,7

h,8

i,9

j,10];

Output like this

Hope this help you.

Thanks.

Anil_Babu_Samineni

This is long process, What you do if C has 1000 values. You need to do 1000 times. You can check my reply

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
tresesco
MVP
MVP

Repeat('*' , c)

Note: 'c' is assumed to be a field or column name in the chart or expression

vinieme12
Champion III
Champion III

Repeat(chr(9734),YourExpression)

You would probably want to do this on a percentage scale in your actual implementation

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.