Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello, my friends.
Tenho a seguinte situação.
Na tabela 1 tenho uma coluna com números de contrato (1000, 1001, 1002, 1003, n)
Na tabela 2 tenho uma tabela de fornecedores que podem atender vários contratos. Nesta tabela há uma coluna com os números de contratos atendidos, porém os números estão inseridos da seguinte forma em cada célula: 1000; 1003 (separados por ponto e vírgula).
Preciso inserir uma segmentação de dados pelo número do contrato (da tabela 1), e que esta consiga filtrar a tabela 2 que contém os dados aglutinados com ponto e vírgula (algo como uma CONTAINSTRING)
Alguém consegue me auxiliar nesta missão?
Solved! Go to Solution.
Hi @dmessias ,
For the single selection in the slicer, you can create a measure.
Measure = IF(ISFILTERED('TABELA 2'[Contratos]),IF(CONTAINSSTRING(MAX('TABELA 2'[Contratos]),SELECTEDVALUE('TABELA 1'[Contratos]))=TRUE(),1),1)
Put the measure into the filters of the table visual, set up show items when the value is 1.
Below is the result.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Great, @Anonymous .
I was trying a solution close to the one you suggested, but I was missing some details. Thanks for the tip.
Diego
Hi @dmessias ,
For the single selection in the slicer, you can create a measure.
Measure = IF(ISFILTERED('TABELA 2'[Contratos]),IF(CONTAINSSTRING(MAX('TABELA 2'[Contratos]),SELECTEDVALUE('TABELA 1'[Contratos]))=TRUE(),1),1)
Put the measure into the filters of the table visual, set up show items when the value is 1.
Below is the result.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
13 | |
11 | |
9 | |
6 |