Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Valor maximo en set analysis para tabla pivote

good day

I'm new to qlikView:

I am trying to calculate in a table the maximum value of a field to use it in a set of analysis,

I calculate the maximum value per dimension (maxString) I get the expected result, but only the maximum data of the entire table, in the others it is "0"

3.jpg

The set analysis only calculates the maximum value of the field RegistroNum and not of the others,

What formula can I use to calculate the maximum field of each dimension?

I already tried with a sum aggr but it does not give me results

regards

1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

the above expression is working for me

SUM( AGGR (
 
if(No.Registro = Max(TOTAL <Descripción> [No.Registro]) , [Inventario (Unidades)]),Descripción,[No.Registro])
  )

Attaching updated QVW

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

14 Replies
vinieme12
Champion III
Champion III

can you post a data sample in excel ? and the expressions and dimensions you are using

do you want to see max by the value returned by maxstring()??

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Anonymous
Not applicable
Author

Here you can find the file of Qlikview with an example of my data

I hope you can help me.

thanks

Example.qvw - Google Drive

Anil_Babu_Samineni

What was the issue? Can you convert into English. If not fluent, Take help from others. So that, i may can read your message

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anil_Babu_Samineni

Can you check this, I am not sure i understand the issue

=sum({< No.Registro = {"$(=Max([No.Registro]))"} >} [Inventario (Unidades)])

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable
Author

thanks,

I need this information in the table:

The value of the field [Inventario (Unitdades)]

only if it corresponds to the maximum value of the field "No.Registro"

this for each dimension,

actually the expresion that i use, only do this with the max value of all the table, but i need this for each dimension

i tried with Sum(Aggr()) and with max() and MaxString() but it doesn´t work,

for more specification here is the file:

https://drive.google.com/file/d/0B5Vh0Cg_kmH5WDF2Mm9QODVSS0k/view?usp=sharing

Anonymous
Not applicable
Author

I tried that,

but it does not work, it only calculates the maximum value of the table,

but not the rest of the dimension

4.jpg

If I select only one description, the result is expected, but not when I have not selected anything

3.jpg

vinieme12
Champion III
Champion III

Try

=sum({< No.Registro = {"$(=Max(TOTAL <description> [No.Registro]))"} >} [Inventario (Unidades)])

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Anonymous
Not applicable
Author

it do the same

5.jpg

vinieme12
Champion III
Champion III

Try;

SUM( AGGR (

                    if(No.Registro = Max(TOTAL <description> [No.Registro]) , [Inventario (Unidades)]),Description)

     )

I'm not able to open GDrive,can you attach here?

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.