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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
VenkatTav
Frequent Visitor

Not able to user OR function while filter two different tables in calculated measure

Hi All,

 

I have requirement to get MAX(Table1.DATE) where Table1.status_type ="90,243,205" OR TABLE2.STATUS_TYPE="DH1", i'm creating this as a calculated measure.

 below is the error im getting. 

ERROR :
VenkatTav_0-1678098600863.png

 

 

Code:

MISS_ITEM_RCV(205)_1_test =
CALCULATE(MAX(FORECLOSURE_STATUS[STATUS_DATE]),OR(FILTER(FORECLOSURE_STATUS,FORECLOSURE_STATUS[STATUS_TYPE] IN {"90","243","205"}),FILTER(SERVICE_CODE,SERVICE_CODE[SERVICE_CODE]="DH1"))
)
 
Thanks in advance.
2 REPLIES 2
FreemanZ
Super User
Super User

hi @VenkatTav 

try like:

MISS_ITEM_RCV(205)_1_test =
CALCULATE(
    MAX(FORECLOSURE_STATUS[STATUS_DATE]),
    OR(
        FORECLOSURE_STATUS[STATUS_TYPE] IN {"90","243","205"}, 
        SERVICE_CODE[SERVICE_CODE]="DH1"
    )
)

I tried the above solution before posting , but still tried once more and below is the error.

VenkatTav_0-1678101707888.png

 

Helpful resources

Announcements
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.