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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.