Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Olá pessoal,
Por favor, poderiam me ajudar a criar uma formula para trazer o resultado de acordo com a ultima coluna da tabela abaixo:
observações:
Eu sei realizar para uma unica linha, mas fazendo essa inteligência de olhar todos os status para o mesmo chamado não.
Podem me ajudar?
Abs,
Solved! Go to Solution.
Hi @carloshluiz ,
According to your description, here's my solution, create a calculated column.
Action =
IF (
CALCULATE (
DISTINCTCOUNT ( 'Table'[Status da Ordem de Trabalho] ),
FILTER ( 'Table', 'Table'[Chamado] = EARLIER ( 'Table'[Chamado] ) )
) > 1,
"Service not completed, do Follow Up",
"Service Completed, Close Call"
)
Get the correct result.
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I will reformulate here my help for you to help me.
I need the system to return the "Service Completed, Close Call" message when all Work Order statuses are "Closed". If the work order still has a status of open, I cannot close the ticket. New example below:
can you help me one more time?
Thanks for all the help 🙂
Hugs
Hi @carloshluiz ,
According to your description, here's my solution, create a calculated column.
Action =
IF (
CALCULATE (
DISTINCTCOUNT ( 'Table'[Status da Ordem de Trabalho] ),
FILTER ( 'Table', 'Table'[Chamado] = EARLIER ( 'Table'[Chamado] ) )
) > 1,
"Service not completed, do Follow Up",
"Service Completed, Close Call"
)
Get the correct result.
I attach my sample below for reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@carloshluiz , a new column like
new column =
var _count = countx (filter(Table, Table[Work Order] = earlier(Table[Work Order])),[Work Order]) // Work Order in column 1
var _complete = countx (filter(Table, Table[Work Order] = earlier(Table[Work Order]) && [status]= "Service Completed, Close Call"),[Work Order])
var _not = countx (filter(Table, Table[Work Order] = earlier(Table[Work Order]) && [status]= "Service not completed, do Follow Up"),[Work Order])
return
Switch(True() ,
_complete =_count , "Service Completed, Close Call" ,
_not =_count , "Service not completed, do Follow Up" ,
[status])
Hello.
Thank you for help.
I'll try and I'll let you know.
thanks.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
85 | |
70 | |
68 | |
51 | |
32 |
User | Count |
---|---|
115 | |
100 | |
74 | |
65 | |
40 |