cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rdodworth Frequent Visitor
Frequent Visitor

Re: Help with sum of distinct count filter

this is what i have done in the past

CALCULATE (
        SUM ( Methods[F_Not_Covered_Lines] ),
        DISTINCT (
            SUMMARIZE (
                Methods,
                Methods[ModuleName],
                Methods[NamespaceName],
                Methods[ClassName]
            )
        )

 

So use summarize to summarize the data to the level you want above the grain-> wrap it in a distinct -> pass it as a filter to a calculate function and do your aggregation

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 532 members 4,307 guests
Please welcome our newest community members: