What is the correct way to structure a ifelse to be able to filter using a parameter?

0

I am trying to use a parameter to create a set of records that can be filtered. I've created a parameter audience with the options of retrieving all the audience or a subset of registers from the register column. The filter is created with the below calculations with the following ifelse but the visual is giving me a type error (CONTEXTUAL_INVALID_ARGUMENT_TYPE). Can someone advise on the best way to do so?

ifelse(${audience}='all', 1=1,${audience}='registrants', register=1, 1=1)

feita há 2 anos97 visualizações
Sem respostas

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas