cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Reuben Regular Visitor
Regular Visitor

Filter in SUMMARIZE function

Hi all,

In my measure, i want to exclude from the calculation the column "Line C" , but I don´t know wherte to put the filter TableLines[Line] <> "Line  C". Any ideas?

Thank you very much for your help

Sin título.png

YTD OEE =
CALCULATE (
    DIVIDE (
        SUMX (
            SUMMARIZE (
                TableLines;
                TableLines[Line];
                "AA"; [Total Units] / ( [Opening Time H] * [Speed units hour] )
            );
            [AA] * [Opening Time H]
        );
        [Opening Time H];
        0
    );
    DATESYTD ( Calendar[Date]; "30/06" );
    FILTER (
        ALL ( 'Calendar' );
        'Calendar'[Date] <= MAX ( 'Calendar'[Date] )
            && 'Calendar'[Fiscal Year] = MAX ( 'Calendar'[Fiscal Year] )
    )
)
1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Filter in SUMMARIZE function

Hi @Reuben ,

 

You can add it in the "SUMMARIZE" part.

SUMMARIZE (
                FILTER(TableLines;TableLines[Line] <> "Line  C");
                TableLines[Line];
                "AA"; [Total Units] / ( [Opening Time H] * [Speed units hour] )
            )

 

Community Support Team _ Eads
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

2 REPLIES 2
Community Support Team
Community Support Team

Re: Filter in SUMMARIZE function

Hi @Reuben ,

 

You can add it in the "SUMMARIZE" part.

SUMMARIZE (
                FILTER(TableLines;TableLines[Line] <> "Line  C");
                TableLines[Line];
                "AA"; [Total Units] / ( [Opening Time H] * [Speed units hour] )
            )

 

Community Support Team _ Eads
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

Reuben Regular Visitor
Regular Visitor

Re: Filter in SUMMARIZE function

@v-eachen-msft Thank you very much!!

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: 506 members 4,068 guests
Please welcome our newest community members: