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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
lukiwu
New Member

By duplicates only show false value

Hello, 
I have a question regarding the table in report view in Power BI Desktop. I need to get rid off the rows for the same customer where for example in Col1 there were True and False value at the same time and it should show me only the False value at the end. And when there's only one row with True value then it should show me this True value. 
It would be filtered dynamically by date as well. Do you have any idea, how to deal with this case? 

 

Zrzut ekranu 2024-03-29 134308.png

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@lukiwu Probably some type of Complex Selector: The Complex Selector - Microsoft Fabric Community. PBIX is attached below signature:

Measure = 
    VAR __Customer = MAX('Table'[Customer])
    VAR __Table = FILTER(ALL('Table'), [Customer] = __Customer)
    VAR __Result = 
        IF( 
            COUNTROWS(__Table) = 1, 
            1,
            IF( MAXA([Col1]) = 0 || MAXA([Col2]) = 0 || MAXA([Col3]) = 0, 1, 0 )
        )
RETURN
    __Result


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

1 REPLY 1
Greg_Deckler
Community Champion
Community Champion

@lukiwu Probably some type of Complex Selector: The Complex Selector - Microsoft Fabric Community. PBIX is attached below signature:

Measure = 
    VAR __Customer = MAX('Table'[Customer])
    VAR __Table = FILTER(ALL('Table'), [Customer] = __Customer)
    VAR __Result = 
        IF( 
            COUNTROWS(__Table) = 1, 
            1,
            IF( MAXA([Col1]) = 0 || MAXA([Col2]) = 0 || MAXA([Col3]) = 0, 1, 0 )
        )
RETURN
    __Result


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors