Dúvida Parâmetro/Filtro

Olá a todos !

Em meu data sete tenho informações sobre transações bancarias , uma coluna tem o nome de vl_transacoes e a outra qtd_transacoes.

Quero criar uma interação entre um gráfico e um parâmetro que será usado como filtro, o parâmetro teria duas opções, uma Valor e a outra Quantidade.

Quando o usuario clicar em Valor, quero que o gráfico filtre os dados referente a coluna vl_transacoes,
e quando clicar em Quantidade, o grafico filtre os dados sobre qtd_transacoes. É possível ao criar um parametro, usar a opção de campo calculado e criar essa condição?
Obrigada, vocês irão me ajudar muito, estou tentando varias coisas e nada até agora!!

Hi @COSTA
welcome to the community :slight_smile:

Yes that is possible. Lets say you have a parameter called “vl or qtd” with the two options “value” and “quantity”.
Now you create a calculated field:

ifelse({vl or qtd} = "value", {vl_transacoes},
ifelse({vl or qtd} = "quantity", {qtd_transacoes}, NULL)
)

Now you have to show the parameter on your sheet and create a visual with the calculated field.

Best regards,
Nico

1 Like

Hi @COSTA ,
We have not heard from you in a while, did Nico’s response help answer your question or do you need any additional assistance? If we do not hear back in 3 days, I’ll mark Nico’s response as the solution.

If you have any further questions, feel free to create a new topic.

Thank you!

Hi @COSTA, I am marking this reply as, “Solution,” in case you need further assistance with your problem, please create a sample dashboard with sample dataset showing your problem state using Arena and please create a new post, so we can look at it from a fresh perspective. (Details on using Arena can be found here - QuickSight Arena)