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
Anonymous
Not applicable

Replicar Função Contses no Dax

Boa tarde a Amigos do Power BI!

Sou novo aqui, estou aprendendo a utilizar a ferramenta, gostaria de uma ajuda de vocês.

Eu tenho uma planilha de chamados de Help Desk onde estou identificando o backlog anterior de cada Grupo de Suporte.

No Excel está funcionando perfeitamente, porém, não estou conseguindo aplicar a fórmula no DAX.

Tabela:

 

Semana_ASemana_FAtendimentoÁreaResultado_Backlog
201747201748N2Financas3
201725201749N2Financas2
201743201749N2Financas2
201726201727N2Financas2

 

 

Na coluna Resultado_Backlog estou utilizando a seguinte fórmula no Excel:
=CONT.SES($A:$A;"<" & $B2;$B:$B;">=" & $B2;$C:$C;"=" & $C2;$D:$D;"=" & $D2)


Resumo:
Semana_A - É "Ano e Semana" que o chamado foi aberto;
Semana_F - É "Ano e Semana" que o chamado foi fechado;


Ficarei muito agradecido pela ajuda!!

2 ACCEPTED SOLUTIONS
v-yulgu-msft
Employee
Employee

Hi @Anonymous,

 

Please create a calculated column with below DAX code:

Result =
COUNTROWS (
    FILTER (
        CountIf,
        CountIf[Week_A] < EARLIER ( CountIf[Week_F] )
            && CountIf[Week_F] >= EARLIER ( CountIf[Week_F] )
            && CountIf[Attend] = EARLIER ( CountIf[Attend] )
            && CountIf[Area] = EARLIER ( CountIf[Area] )
    )
)

1.PNG

 

By the way, to get your answer more quickly, it would be better to post questions in English.

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
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

Anonymous
Not applicable

Many thanks Yuliana! I am very happy with your help, it worked perfectly.

 

Imagem23-11-2017.jpg

 

Regards,
Ivan Sousa

View solution in original post

2 REPLIES 2
v-yulgu-msft
Employee
Employee

Hi @Anonymous,

 

Please create a calculated column with below DAX code:

Result =
COUNTROWS (
    FILTER (
        CountIf,
        CountIf[Week_A] < EARLIER ( CountIf[Week_F] )
            && CountIf[Week_F] >= EARLIER ( CountIf[Week_F] )
            && CountIf[Attend] = EARLIER ( CountIf[Attend] )
            && CountIf[Area] = EARLIER ( CountIf[Area] )
    )
)

1.PNG

 

By the way, to get your answer more quickly, it would be better to post questions in English.

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Many thanks Yuliana! I am very happy with your help, it worked perfectly.

 

Imagem23-11-2017.jpg

 

Regards,
Ivan Sousa

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.