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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
gus2701
Frequent Visitor

Duas colunas de filtro no Switch

Prezados,

 

O PB não aceita o Switch!

Expression.Error: O nome 'SWITCH' não foi reconhecido. Certifique-se de que ele foi soletrado corretamente.

Qual o comando posso usar no lugar do 'AND'?

Ex. indic3 [etapa] = "Proposta"  'AND' indic3 [tamanho] = "Pequeno", 5, 

Existe outra maneira de fazer isso?

 

SWITCH (TRUE (),
indic3 [etapa] = "Proposta" AND indic3 [tamanho] = "Pequeno", 5,
indic3 [etapa] = "Proposta" AND indic3 [tamanho] = "Médio", 7,
indic3 [etapa] = "Proposta" AND indic3 [tamanho] = "Grande", 7,

Indic3 [etapa] = "Planejamento" AND indic3 [tamanho] = "Pequeno", 4,
indic3 [etapa] = "Planejamento" AND indic3 [tamanho] = "Médio", 5,
indic3 [etapa] = "Planejamento" AND indic3 [tamanho] = "Grande", 7,

indic3 [etapa] = "Proposta" AND indic3 [tamanho] = "Pequeno", 5,
indic3 [etapa] = "Proposta" AND indic3 [tamanho] = "Médio", 7,
indic3 [etapa] = "Proposta" AND indic3 [tamanho] = "Grande", 7,

indic3 [etapa] = "Execução" AND indic3 [tamanho] = "Pequeno", 2,
indic3 [etapa] = "Execução" AND indic3 [tamanho] = "Médio", 5,
indic3 [etapa] = "Execução" AND indic3 [tamanho] = "Grande", 7,

indic3 [etapa] = "Faturamento" AND indic3 [tamanho] = "Pequeno", 3,
indic3 [etapa] = "Faturamento" AND indic3 [tamanho] = "Médio", 3,
indic3 [etapa] = "Faturamento" AND indic3 [ tamanho] = "Grande", 3,


)

Obrigado !!!

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@gus2701,

 

You may use AND Function or the AND operator (&&).

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@gus2701,

 

You may use AND Function or the AND operator (&&).

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors