Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
sns1996
Helper I
Helper I

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
1 ACCEPTED SOLUTION

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:

vyajiewanmsft_1-1729839255971.png

Best regards,

Joyce

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

3 REPLIES 3
Arul
Super User
Super User

@sns1996 ,

Please translate in English.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


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

Can you attach the pbix file?

 

sns1996_0-1729706091819.png

part of the table

sns1996_1-1729706246142.png

 

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:

vyajiewanmsft_1-1729839255971.png

Best regards,

Joyce

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

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.