Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Tenho uma medida dax que apresenta o Status de Cliente "Sem Crescimento", "Com Crescimento", "Sem Histórico" e "Sem Compra". Atualmente essa medida está disposta em uma tabela com outras informações do cliente como nome, Venda Bruta, Venda Bruta Ano Anterior, Variação AA, etc. Preciso de uma solução para transformar essa medida dax em uma segmentação de dados, onde o usuário possa selecionar no filtro uma das 4 opções e visualizar na tabela somente o Status Selecionado.
Já tentei de algumas formas e nenhuma trouxe um resultado coerente e completo.
Abaixo a fórmula dax Status Cliente:
Solved! Go to Solution.
Hi @deizesilveira ,
first we need create a enter table like:
'DimStatusCliente'
the relationship:
And then create a new measure:
Filter Status Cliente =
VAR __slicer = ALLSELECTED('DimStatusCliente'[Status Cliente])
VAR __result = IF( [Status Cliente] IN __slicer, 1 )
RETURN
__result
And then use this measure as the table's filter:
Output:
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum -- China Power BI User Group
Hi @deizesilveira ,
first we need create a enter table like:
'DimStatusCliente'
the relationship:
And then create a new measure:
Filter Status Cliente =
VAR __slicer = ALLSELECTED('DimStatusCliente'[Status Cliente])
VAR __result = IF( [Status Cliente] IN __slicer, 1 )
RETURN
__result
And then use this measure as the table's filter:
Output:
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum -- China Power BI User Group
Muito obrigada pela sugestão!
Mas um ponto importante é que "Status Cliente" não existe em uma estrutura fixa de tabela, é uma medida dax. Quando digo: "Atualmente essa medida está disposta em uma tabela com outras informações do cliente como nome, Venda Bruta, Venda Bruta Ano Anterior, Variação AA, etc." quero dizer que adicionei um visual de tabela e dentro dele coloquei a coluna nome do cliente e as medidas dax criadas, como "Status Cliente", "Venda Bruta", "Venda Bruta Ano Anterior", etc.
Hoje esse Status Cliente é definido através da venda do cliente, vou adicionar as medidas que definem esses Status (Com Crescimento, Sem Crescimento, Sem Histórico e Sem Compra) abaixo ([Venda Bruta] e [Venda Bruta AA]):
Hi @deizesilveira ,
I understand that [Status Cliente] is a measure.
But since Slicer only accepts columns as values, here I've added all the output values from [Status Cliente] to a table.
Finally a metric is created to get the values in the slicer and pass them to the visual filter.
You may refer to the example file I uploaded earlier.
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum -- China Power BI User Group
User | Count |
---|---|
85 | |
82 | |
66 | |
53 | |
47 |
User | Count |
---|---|
102 | |
50 | |
42 | |
39 | |
38 |