Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Add the result of an Above

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

evidencia1.png

Gracias¡

1 Solution

Accepted Solutions
Digvijay_Singh

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

View solution in original post

12 Replies
Digvijay_Singh

Check this, whether you want to accumulate count or total count in a column -

Capture.PNG

Anonymous
Not applicable
Author

I do not understand where you get the ID or the Total

vhespinog
Contributor III
Contributor III

"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

What does the TOTAL qualifier do?

Digvijay_Singh

Can you elaborate more on your requirement, the expressions can be modified to meet your need.

Anonymous
Not applicable
Author

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!

buena.png

vhespinog
Contributor III
Contributor III

May be like this

sum(total Aggr(if(Above(Precio)<Precio,1),CCO_CompraANombre,Precio))

i'm not sure if i understand the issue

Anonymous
Not applicable
Author

does not count the times that the product rose price

Digvijay_Singh

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

Anonymous
Not applicable
Author

thank you very much¡