Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Help with Window Title in Gauge Chart!

Hi All,

I am using the below expression in gauge chart. The result are getting displayed in the in proper format. Could you please tell me what exactly I need to do so that it displays the result in correct format.

error loading image


====date(makedate(Max(Year), Max(Month)), 'MMM YYYY') &' vs ' & date(makedate(Max(Year), Max(Month-1)), 'MMM YYYY')& ' Sales Growth @ ' & num(Sum({$<Year={$(=Max(Year))},Month={$(=Max(Month))}>} SalValue) / Sum({$<Year={$(=Max(Year))},Month={$(=Max(Month)-1)}>} SalValue), '#%')


11 Replies
renjithpl
Specialist
Specialist

i think its to do with your numbering format. Try '##.##%'

regards

Ren

Anonymous
Not applicable
Author

Rikab,
Instead of '#%', try '#0%'

Not applicable
Author

Hi All,

I already tried both the method but it shows different value. Explained it in the below screen shot.

renjithpl
Specialist
Specialist

Hi Rikab,

Can you send the data which you are getting when you do your below code.

1. Sum({$<Year={$(=Max(Year))},Month={$(=Max(Month))}>} SalValue) ????

and

2. Sum({$<Year={$(=Max(Year))},Month={$(=Max(Month)-1)}>} SalValue) ????

Regards

Ranjit

Not applicable
Author

Hi,

Do you have any dimension in your gauge chart?

Maybe you need to use the aggr function.

Not applicable
Author


Eduardo Correa wrote:
Do you have any dimension in your gauge chart?
Maybe you need to use the aggr function. <div></div>


Yes, Dimension is there.

Not applicable
Author

Hi Ranjit,

This is what I am using in the expression. mfacname is there in the dimension.

Sum({$<Year={$(=Max(Year))}>} SalValue) / Sum({$<Year={$(=Max(Year)-1)}>} SalValue)

Not applicable
Author

I think that the result "10.xxxxxx" are a partial result because you have a dimension in your chart.

How in the title don't have dimension group by the function AGGR the result are "28%".

If you change your chart to straight table, how many rows return?

renjithpl
Specialist
Specialist

I meant, the values you are getting seperately

1. Sum({$<Year={$(=Max(Year))}>} SalValue)

2. Sum({$<Year={$(=Max(Year)-1)}>} SalValue)

Normally when i get such errors, i calculate the values in a normal calculator, and analyse where the changes need to be done. sometimes, it accepts *100 or /100 will give the right answer.

I am not sure, but i will try definetly. 🙂

Regards