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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
AllanBerces
Post Prodigy
Post Prodigy

IF, Multiple

Hi good day can anyone help me on my calculated column, 

   - If the Job_ID is equal to Y in Fab column then search Fab in trade column if none Pending if there is Done 

   - If the Job_ID is equal to N in Fab column then result is Done

   - If the Job_ID is equal to D in Fab column then result is Done

 

AllanBerces_1-1745991730534.png

AllanBerces_3-1745991792921.png

Thank you

 

2 ACCEPTED SOLUTIONS
Cookistador
Super User
Super User

Hi @AllanBerces 

 

According to your snapshot

The following dax code should return what you need

 

RESULT=
IF(
    'Test'[Fab] = "Y",
    IF(
        CALCULATE(
            COUNTROWS('Test'),
            ALLEXCEPT('Test', 'Test'[Job ID]),
            'Test'[Trade] = "Fab"
        ) > 0,
        "Done", 
        "Pending" 
    ),
    "Done"
)

 

View solution in original post

lukiz84
Memorable Member
Memorable Member

Result =
 IF(
   Table[Fab] IN {"N", "D"},
   "Done",
   IF(
      Table[Fab] = "Y" && Table[Trade] = "Fab",
      "Done",
      "Pending"
   )
 )

View solution in original post

3 REPLIES 3
lukiz84
Memorable Member
Memorable Member

Result =
 IF(
   Table[Fab] IN {"N", "D"},
   "Done",
   IF(
      Table[Fab] = "Y" && Table[Trade] = "Fab",
      "Done",
      "Pending"
   )
 )
Cookistador
Super User
Super User

Hi @AllanBerces 

 

According to your snapshot

The following dax code should return what you need

 

RESULT=
IF(
    'Test'[Fab] = "Y",
    IF(
        CALCULATE(
            COUNTROWS('Test'),
            ALLEXCEPT('Test', 'Test'[Job ID]),
            'Test'[Trade] = "Fab"
        ) > 0,
        "Done", 
        "Pending" 
    ),
    "Done"
)

 

HI @Cookistador @lukiz84 Thank you very much for the reply, all goods

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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