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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Michaelbean21
Advocate II
Advocate II

Using an if statement with a related table.

I am trying to create an if statement to see if one value on a table is blank and another value on another table equals whatever.  I am getting the result as follows, does anyone know how to resolve this issue?

Michaelbean21_0-1648218956663.png

 

1 ACCEPTED SOLUTION
Samarth_18
Community Champion
Community Champion

Hi @Michaelbean21 ,

 

Please try this:-

Estimated premius bank =
IF (
    FACT_BookOfBusiness[Estimated Premius] = BLANK ()
    && RELATED ( DIM_LineStatus[Line Status Code] ) IN { "AQR", "CAI", "CCQ" ....},//add your values of if condition inside " ".
    "Audit",
    "No Audit"
)

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

2 REPLIES 2
Samarth_18
Community Champion
Community Champion

Hi @Michaelbean21 ,

 

Please try this:-

Estimated premius bank =
IF (
    FACT_BookOfBusiness[Estimated Premius] = BLANK ()
    && RELATED ( DIM_LineStatus[Line Status Code] ) IN { "AQR", "CAI", "CCQ" ....},//add your values of if condition inside " ".
    "Audit",
    "No Audit"
)

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Thank you much for your help on this! Been trying to figure this out for over a week now.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors