Forum Discussion

sns1996's avatar
sns1996
Helper I
1 year ago
Solved

Filtrar valor

Estou precisando filtrar da tabela reclamação (Abaixo) montando a tabela abaixo:

 

Tem como anexar o arquivo pbix

 

MêsBravura
AgostoMês Ocorrência Agosto e Mês data banca Agosto
SetembroMês Ocorrencia Setembro e Mês data banca Agosto
OutruboMês Ocorrência Outubro e Mês data banca Agosto

 

 

Ocorrência de dadosAno OcorrenciaMês OcorrenciaData BancasAno Data BancaMês Data BancaBravura
01/08/20242024agosto01/07/20242024julho5
02/08/20242024agosto01/07/20242024julho1
03/08/20242024agosto01/07/20242024julho3
05/08/20242024agosto01/07/20242024julho1
06/08/20242024agosto01/08/20242024agosto3
06/08/20242024agosto06/08/20242024agosto2
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi sns1996 , Arul, thank you for your prompt reply!

    Check the following measure:

     

    ComplaintValue = 
        SWITCH(
            TRUE(),
            MAX('Table'[Month Occurrence]) = "August" ,
                CALCULATE(SUM('Table'[Value]), 
                    'Table'[Month Occurrence] = "August" &&
                    'Table'[Month Date Bank] = "August"),
            MAX('Table'[Month Occurrence]) = "September" ,
                CALCULATE(SUM('Table'[Value]), 
                    'Table'[Month Occurrence] = "September" &&
                    'Table'[Month Date Bank] = "August"),
            MAX('Table'[Month Occurrence]) = "October" ,
                CALCULATE(SUM('Table'[Value]), 
                    'Table'[Month Occurrence] = "October" &&
                    'Table'[Month Date Bank] = "August"),
            BLANK()
        )
    

    Result for your reference:

    Best regards,

    Joyce

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

3 Replies

    • sns1996's avatar
      sns1996
      Helper I

      I need to filter from the complaint table (Below) by creating the table below:

      Can you attach the pbix file?

       

      part of the table

       

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi sns1996 , Arul, thank you for your prompt reply!

        Check the following measure:

         

        ComplaintValue = 
            SWITCH(
                TRUE(),
                MAX('Table'[Month Occurrence]) = "August" ,
                    CALCULATE(SUM('Table'[Value]), 
                        'Table'[Month Occurrence] = "August" &&
                        'Table'[Month Date Bank] = "August"),
                MAX('Table'[Month Occurrence]) = "September" ,
                    CALCULATE(SUM('Table'[Value]), 
                        'Table'[Month Occurrence] = "September" &&
                        'Table'[Month Date Bank] = "August"),
                MAX('Table'[Month Occurrence]) = "October" ,
                    CALCULATE(SUM('Table'[Value]), 
                        'Table'[Month Occurrence] = "October" &&
                        'Table'[Month Date Bank] = "August"),
                BLANK()
            )
        

        Result for your reference:

        Best regards,

        Joyce

        If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.