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
Digger
Post Patron
Post Patron

DIstinct filter by column and measure

I have measure

    CALCULATE (
       [Sales, Pcs],
        FILTER (
            DISTINCT (FullFillment[Code]),
            COUNTROWS (
                FILTER (
                   'CustomTable',
                   [TurnoverCategory]='CustomTable'[ShortName]
                )
            ) > 0
        )
    )

But it count only one column, and show only in one category
 
Digger_0-1663837219159.png

 

But i need split by all TurnoverCategories
something like that

    CALCULATE (
       [Sales, Pcs],
        FILTER (
            DISTINCT (FullFillment[Code] && Measure_TurnoverCategory),
            COUNTROWS (
                FILTER (
                   'CustomTable',
                   [TurnoverCategory]='CustomTable'[ShortName]
                )
            ) > 0
        )
    )



2 REPLIES 2
amitchandak
Super User
Super User

@Digger , Nor very clear. Just check Are you trying something similar

 

Dynamic segmentation -Measure to Dimension conversion: https://youtu.be/gzY40NWJpWQ

 

Customer Retention with Dynamic Segmentation, New/Lost/Retain Customer Count: https://www.youtube.com/watch?v=W4EF1f_k6iY

@amitchandak  not on that side at all

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.

Top Solution Authors