Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Good morning I would like to know how I can add the following expression:
My Expression is the Status =
If (Status = 'Subium', 1,0)
But now I need Total Subio to tell me how many rose in this case should give me 2, but it is not doing, someone could help me the way I calculate that expression is the following:
Sum
Evidence1.png
Thank you
Gracias¡
May be Try this, I calculated based on dimension 'Status' but in your case Status is expression so try putting actual expression of Subio in the total calculation -
Total Subio=
Count(Total if(
Aggr(if(Above(Precio)>Precio,'Bajo', if(Above(Precio)<Precio,'Subio','Sin Cambios')),CCO_CompraANombre,Precio)=
'Subio',Precio))
I am just trying to put actual expression of Subio calculation in the total expression
Check this, whether you want to accumulate count or total count in a column -
I do not understand where you get the ID or the Total
"TOTAL is a useful qualifier that can be added to an aggregation function (such as Sum, Count, and Avg) to tell QlikView to ignore the dimensions of a chart in the calculation. By default, it ignores all the dimensions, but we can be more specific and tell it to ignore some while respecting others".
QlikView for Developers Cookbook
see an example here
Can you elaborate more on your requirement, the expressions can be modified to meet your need.
I did the following
Status = =Aggr(if(Above(Precio)>Precio,'Bajo', if(Above(Precio)<Precio,'Subio','Sin Cambios')),CCO_CompraANombre,Precio)
Subio=if(Status='Subio',1,0) and in the properties I put it of type number.
Total Subio= Count(Total if(Subio='Subio',Precio))
But it still does not bring me how many ... helped!
May be like this
sum(total Aggr(if(Above(Precio)<Precio,1),CCO_CompraANombre,Precio))
i'm not sure if i understand the issue
does not count the times that the product rose price
May be Try this, I calculated based on dimension 'Status' but in your case Status is expression so try putting actual expression of Subio in the total calculation -
Total Subio=
Count(Total if(
Aggr(if(Above(Precio)>Precio,'Bajo', if(Above(Precio)<Precio,'Subio','Sin Cambios')),CCO_CompraANombre,Precio)=
'Subio',Precio))
I am just trying to put actual expression of Subio calculation in the total expression
thank you very much¡