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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
pascos88
Creator II
Creator II

Allert button with condition

Hello,

I have this small App.

Now I need to have a "button alarm" that it will be red when the avg of a Turbine, it will be higher than 10% of the general avg.

Someone can help me?

Thanks a lot

Regeard

Pasquale

15 Replies
rubenmarin

For higher than 10% it can be:

If(Sum(Aggr(If(avg(TOTAL <Class_PP> {<Turbine=>}Temperature)/avg(Temperature)>1.1, 1, 0), Turbine, Class_PP)), Red(), Green())

pascos88
Creator II
Creator II
Author

Hi Ruben thanks for reply.

So Class_PP is not time, I was wrong, I put an immage above in order to better undertand what I need.

Do you have some advoces to give me? How I can do it?

rubenmarin

Not sure to understand this last one. Class_PP it's not the time but it's the dimension of the chart?

You can add a dot in the chart as an expression with symbol (dot) representation:

- Expression: If(Sum(Aggr(If(Avg(Temperature)/Avg(TOTAL <Class_PP> {<Turbine=>}Temperature)>1.1, 1, 0), Turbine, Class_PP)), Avg(Temperature))

- Representation options: Symbol(dots)

- Background color: Red(128) //Semitransparent

- Symbol size(presentation tab): 5 or 6 points

effinty2112
Master
Master

Hi Pasquale,

                         If you add Day and Time fields to your data set it makes it a bit easier to navigate then a pivot table like this might work for you.

I've selected the day 11/12/2015  and between 00:00:00 and 03:00:00 and the table shows all the temperature data for all the turbines over that time. The average temperature across all the readings is 37.86. The text colour is set as

if(avg(Temperature)>= avg(TOTAL <datetime>Temperature)*1.1,Red())

background:

if(avg(Temperature)>= avg(TOTAL <datetime>Temperature)*1.1,RGB(250,250,210))

By picking whatever date range and times you want to average over the pivot table will show the temperatures and highlight the ones in excess of 110% of the average.

Windpark BazochesPithiviersSermaises
Day Time Turbine E1E2E3E4E5E6E1E2E3E4E5E1E2E3E4E5E6
11/12/201500:00:00 33.039.033.033.031.035.040.039.040.038.037.033.036.027.027.031.022.0
00:10:00 33.038.033.032.031.034.040.038.040.038.037.033.035.027.027.031.021.0
00:20:00 33.037.032.032.031.033.040.038.039.039.038.033.034.026.027.031.021.0
00:30:00 33.036.032.032.030.032.040.038.039.039.038.033.034.026.027.031.021.0
00:40:00 33.035.032.032.030.031.041.038.039.040.039.033.033.026.027.031.021.0
00:50:00 35.035.031.032.029.031.041.039.039.040.039.033.033.026.027.032.021.0
01:00:00 36.034.031.033.029.030.042.039.040.040.040.033.032.027.027.032.021.0
01:10:00 37.033.031.034.029.030.042.039.040.041.040.033.032.026.027.031.021.0
01:20:00 38.032.031.034.029.029.043.040.041.041.041.033.031.026.027.031.021.0
01:30:00 39.032.032.035.030.028.044.041.041.042.042.033.030.026.027.030.021.0
01:40:00 40.033.033.036.030.028.044.041.042.042.042.032.030.026.026.029.020.0
01:50:00 40.033.033.037.031.029.045.041.042.042.043.033.030.026.026.029.020.0
02:00:00 41.034.034.037.032.030.045.042.043.041.043.033.030.026.026.030.020.0
02:10:00 41.036.034.037.032.031.046.042.044.040.043.033.030.026.026.032.020.0
02:20:00 42.038.036.038.034.032.047.043.044.040.043.034.030.026.026.034.020.0
02:30:00 41.039.037.040.035.032.047.044.045.040.042.034.030.026.026.036.020.0
02:40:00 40.040.038.040.036.033.048.044.046.040.042.035.031.028.027.039.020.0
02:50:00 39.041.039.040.037.033.048.044.046.040.042.036.032.030.027.042.020.0
03:00:00 37.041.039.039.037.034.048.044.046.038.042.036.033.031.028.042.020.0
pascos88
Creator II
Creator II
Author

Hello Andrew,

this is a good solution, but I need to have a Line Chart to show this.

Maybe I cann add the time, but I should change also the chart, it is true?

Really thanks for the Reply

Pasquale

effinty2112
Master
Master

Hi Pasquale,

Have a look at this qvw and see what your think.

cheers

Andrew