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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Viegas_Jeff
Contributor
Contributor

GetObjectDimension na linha de referência

Eu queria fazer duas médias na linha de referência, porém que cada uma fosse apresentada conforme escolho a dimensão no meu gráfico de barras, eu queria entender se é possível fazer isso, estou usando está expressão para a média, 

if(GetObjectDimension(0) = 'OJ',
Avg(
Aggr(
Count({<IND_ELETRONICO = {'S'}>} PROCESSO),
SIGLA_DO_OJ
)),
Avg(
Aggr(
Count({<IND_ELETRONICO = {'S'}>} PROCESSO),
ULTIMO_RELATOR
)
)
)

Labels (6)
1 Reply
Digvijay_Singh

I think you cannot do it as reference line also need to have similar expression to check active dimension of a chart like you did in your measure expression,  because as per Qlik help documentation, you cannot use getobjectdimension() in reference lines - 

https://help.qlik.com/en-US/sense/May2024/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/FieldFunct...