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: 
francis_gr
Creator
Creator

nervous chart

Hi!!

I have done a bar chart with 2 dimensions and 1 expression.

Dimension1

If(Date(MakeDate(Año,mes),'MM/YYYY')>=Ini_Hco and Date(MakeDate(Año,mes),'MM/YYYY')<=Date(MakeDate(Year(FechaInforme),Month(FechaInforme)),'MM/YYYY'),MESAÑO)

Dimension 2

Centro_Dep (it`s a field in a access table)

Expression

Sum ( If ( Not IsNull ( Centro_Dep ), 1 , 0 ))

The chart shows for each month and year, how many people is in each departament

Inexplicably, for a few seconds (maybe 1 or 2) and randomly, the chat bars disappear and appear, justl like the chart recalculate itself

Is there somebody with something similar??

how I can be solved?

Thanks

1 Solution

Accepted Solutions
Not applicable

Hi,

Your variable "FechaInforme" is using a function "NOW()".

This this function use the system datetime and update every second.

Try declare a fild whith this function, and dont use into a variable.

Ex.:

LOAD

...

NOW() AS FechaInforme,

...

View solution in original post

6 Replies
deepakk
Partner - Specialist III
Partner - Specialist III

hi

Can you attach a sample application.

francis_gr
Creator
Creator
Author

Hi Deepak!

Check this one

Regards

Not applicable

Hi,

change the expression

Sum ( If ( IsNull(Centro_Dep) = 0, 1 , 0 ))

The funciton ISNULL return -1 if the values = NULL and 0 if the value is not null.

francis_gr
Creator
Creator
Author

Hi Eduardo!

I have changed the expression but the chart keep doing the same!!

I think the problem is the dimension

=If(Date(MakeDate(Año,mes),'MM/YYYY')>=Ini_Hco and Date(MakeDate(Año,mes),'MM/YYYY')<=Date(MakeDate(Year(FechaInforme),Month(FechaInforme)),'MM/YYYY'),MESAÑO)


Is there any way to simplify the expression??

thanks.

Not applicable

Hi,

Your variable "FechaInforme" is using a function "NOW()".

This this function use the system datetime and update every second.

Try declare a fild whith this function, and dont use into a variable.

Ex.:

LOAD

...

NOW() AS FechaInforme,

...

francis_gr
Creator
Creator
Author

Thanks Eduardo!!

I have followed your indications and solves the problem perfectly.

Regards