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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Robert14358
Resolver III
Resolver III

DAX OR and FILTER

Hello All.

Is there a way to FILTER with OR here is what i need...

(ECN) ECN Item #'s (P1) =

CALCULATE([(ECN) ECN Item #'s],
OR(
FILTER(Dim_ECN,Dim_ECN[ECN_Hotwork_Flag_Final] = MAX(Switch_P1[Hotwork?])),
FILTER('Fact_ECN (Multi-Function)',
    'Fact_ECN (Multi-Function)'[ECN_Multi_BLK_Inchstone] >= MIN(WhatIF_P2[WhatIF_Inchstone_P2]) &&
    'Fact_ECN (Multi-Function)'[ECN_Multi_BLK_Inchstone] <= MAX(WhatIF_P2[WhatIF_Inchstone_P2]))
,
FILTER(Dim_ECN,Dim_ECN[ECN_FG_Flag] = "Yes")
)
)
1 ACCEPTED SOLUTION
Robert14358
Resolver III
Resolver III

figured it out becuase of Marco 🙂

(ECN) ECN Item #'s (P1) =

CALCULATE([(ECN) ECN Item #'s],
    FILTER(    
        CROSSJOIN(Dim_ECN,'Fact_ECN (Multi-Function)'),
        (
        Dim_ECN[ECN_Hotwork_Flag_Final] = MAX(Switch_P1[Hotwork?]) &&
        'Fact_ECN (Multi-Function)'[ECN_Multi_BLK_Inchstone] >= MIN(WhatIF_P1[WhatIF_Inchstone_P1]) &&  
        'Fact_ECN (Multi-Function)'[ECN_Multi_BLK_Inchstone] <= MAX(WhatIF_P1[WhatIF_Inchstone_P1])
        )
        || Dim_ECN[ECN_FG_Flag] = "Yes"
    )
)

View solution in original post

1 REPLY 1
Robert14358
Resolver III
Resolver III

figured it out becuase of Marco 🙂

(ECN) ECN Item #'s (P1) =

CALCULATE([(ECN) ECN Item #'s],
    FILTER(    
        CROSSJOIN(Dim_ECN,'Fact_ECN (Multi-Function)'),
        (
        Dim_ECN[ECN_Hotwork_Flag_Final] = MAX(Switch_P1[Hotwork?]) &&
        'Fact_ECN (Multi-Function)'[ECN_Multi_BLK_Inchstone] >= MIN(WhatIF_P1[WhatIF_Inchstone_P1]) &&  
        'Fact_ECN (Multi-Function)'[ECN_Multi_BLK_Inchstone] <= MAX(WhatIF_P1[WhatIF_Inchstone_P1])
        )
        || Dim_ECN[ECN_FG_Flag] = "Yes"
    )
)

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.