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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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
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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.