cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Michaelbean21
Frequent Visitor

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
Super User
Super User

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


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
Super User
Super User

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


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
September Update

Check it Out!

Click here to learn more about the September 2022 updates!

Power BI Show episode 9

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power BI Dev Camp Session 25

Ted's Dev Camp - August 25, 2022

Watch Session 25 of Ted's Dev Camp.

Top Solution Authors