Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
EmmaMark
Contributor III
Contributor III

Aggr Expressions NOT Working when using Custom Dimension Pick

Any idea how to get this set analysis right

the first line works the others are zero

PICK( Match(ORDEM1,
$(=Concat({<ORDEM1 -= {''}>}DISTINCT chr(39) & ORDEM1 & chr(39),',',ORDEM1))
),
sum({<Ano={$(=Max(Ano))},[Mes]={'Fev'}>}Aggr($(vExpressao1), Ano,Mes)),sum({<Ano={$(=Max(Ano))},[Mes]={'Fev'}>}Aggr($(vExpressao2), Ano,Mes)),
sum({<Ano={$(=Max(Ano))},[Mes]={'Fev'}>}Aggr($(vExpressao3), Ano,Mes)),sum({<Ano={$(=Max(Ano))},[Mes]={'Fev'}>}Aggr($(vExpressao4), Ano,Mes))

)

2020-04-26_10-55-51.png

 

1 Solution

Accepted Solutions
JGMDataAnalysis
Creator III
Creator III

De acuerdo a lo que interpreto, tu objetivo es armar una tabla sencilla que incluya como dimensión el campo [ORDEM1] (proveniente de una isla) y la métrica que no está funcionando correctamente.

De ser así, te sugiero que añadas el calificador TOTAL para evitar que tu métrica sea agrupada por los valores dimensionales de [ORDEM1]...

QlikCommunity_TotalQualifier.PNG

View solution in original post

3 Replies
JGMDataAnalysis
Creator III
Creator III

De acuerdo a lo que interpreto, tu objetivo es armar una tabla sencilla que incluya como dimensión el campo [ORDEM1] (proveniente de una isla) y la métrica que no está funcionando correctamente.

De ser así, te sugiero que añadas el calificador TOTAL para evitar que tu métrica sea agrupada por los valores dimensionales de [ORDEM1]...

QlikCommunity_TotalQualifier.PNG

EmmaMark
Contributor III
Contributor III
Author

Gracias JGM
Ahora solo estoy teniendo un problema con la Expresión 23,
No está haciendo que el porcentaje con decimales sea igual al Total.

******,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao23), [Ano],[Mes]))******

PICK( Match([ORDEM1],$(=Concat({<[ORDEM1] -= {''}>}DISTINCT chr(39) & [ORDEM1] & chr(39),',',[ORDEM1])))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao1), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao2), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao3), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao4), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao5), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao6), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao7), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao8), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao9), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao10), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao11), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao12), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao13), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao14), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao15), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao16), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao17), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao18), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao19), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao20), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao21), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao22), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao23), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao24), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao25), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao26), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao27), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao28), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao29), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao30), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao31), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao32), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao33), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao34), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao35), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao36), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao37), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao38), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao39), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao40), [Ano],[Mes]))
,Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao41), [Ano],[Mes]))


)

2020-04-26_19-54-26.png

EmmaMark
Contributor III
Contributor III
Author

Sum({<[Ano]={$(=Max([Ano]))},[Mes]={'Jan'}>} TOTAL Aggr($(vExpressao23)*100, [Ano],[Mes]))*

thank you