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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
SIBI1998
Helper I
Helper I

AND and AND NOT Condition

Hi,

 

          Here I have needed AND and AND NOT Condition for ;

 

I have 5 Stages (Stage1,Stages2,Stages3,Stages4,Stages5) and (Verified Ekyc) as one Column I have Needed Like with the Below Status "Rejected".

 

IF ISNULL([Stage5]) AND NOT ISNULL([Stage4]) AND NOT ISNULL([Stage3]) AND NOT ISNULL([Stage2]) AND NOT ISNULL([Stage1]) AND [Stage1]!='Rejected' AND [Stage2]!='Rejected' AND [Stage3]!='Rejected' AND [Stage4]!='Rejected' AND ISNULL([Verified Ekyc]) THEN 1
END

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @SIBI1998 ,

 

Please try:

Column = 
IF (
    [Stage1] <> BLANK ()
        && [Stage2] <> BLANK ()
        && [Stage3] <> BLANK ()
        && [Stage4] <> BLANK ()
        && [Stage5] <> BLANK ()
        && [Stage1] <> "Rejected"
        && [Stage2] <> "Rejected"
        && [Stage3] <> "Rejected"
        && [Stage4] <> "Rejected"
        && [Verified Ekyc] <> BLANK (),
    1
)

Eyelyn9_0-1649134773743.png

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

8 REPLIES 8
SIBI1998
Helper I
Helper I

Hi,

 

       Here I have an Colum Payment , Stages with (Stage1,Stage2,Stage3,Stage4,Stage5) and Another Column Verified Ekyc.

       

       I have an Sample Formula which I have used in Tableau and Here I need the Same in Power BI.

 

IF ISNULL([Payment]) AND NOT ISNULL([Stage5]) AND NOT ISNULL([Stage4]) AND NOT ISNULL([Stage3]) AND NOT ISNULL([Stage2]) AND NOT ISNULL([Stage1]) AND ISNULL([Verified Ekyc]) THEN 1
END

SIBI1998_0-1648812158557.png

@Aditya_Meshram I have been Coming up with this error while applying the Formula.

 

 IF(ISBLANK([Payment]) && NOT(ISBLANK([Stage5])) && NOT(ISBLANK([Stage4])) && NOT(ISBLANK([Stage3])) && NOT(ISBLANK([Stage2])) && NOT(ISNULL([Stage1])) && ISBLANK([Verified Ekyc]), This is not valid and I have used ISBLANK instead of ISBLANK

 

Anonymous
Not applicable

The brackets are incorrect.
Add closing brackets in the places I marked with orange and remove the 6 closing brackets from the end.
SIBI1998_0-1648812158557.png

@Aditya_Meshram I have again Came up with this error

 

SIBI1998_0-1648819120691.png

 

@Aditya_Meshram

 

The Formula which I have Used,

 

Payment Pending = IF(ISBLANK('TABLEAU_REPORT overview_ekyc'[payment] && NOT(ISBLANK('TABLEAU_REPORT overview_ekyc'[stage5] && NOT(ISBLANK('TABLEAU_REPORT overview_ekyc'[stage4] && NOT(ISBLANK('TABLEAU_REPORT overview_ekyc'[stage3] && NOT(ISBLANK('TABLEAU_REPORT overview_ekyc'[stage2] && NOT(ISBLANK('TABLEAU_REPORT overview_ekyc'[stage1] && ISBLANK('TABLEAU_REPORT overview_ekyc'[verified_ekyc]),1)
Anonymous
Not applicable

Hi @SIBI1998 , you can try 
IF(ISBLANK([Payment]) && NOT(ISBLANK([Stage5])) && NOT(ISBLANK([Stage4])) && NOT(ISBLANK([Stage3])) && NOT(ISBLANK([Stage2])) && NOT(ISNULL([Stage1])) && ISBLANK([Verified Ekyc]),
1)

Anonymous
Not applicable

Hi @SIBI1998 ,

 

Please try:

Column = 
IF (
    [Stage1] <> BLANK ()
        && [Stage2] <> BLANK ()
        && [Stage3] <> BLANK ()
        && [Stage4] <> BLANK ()
        && [Stage5] <> BLANK ()
        && [Stage1] <> "Rejected"
        && [Stage2] <> "Rejected"
        && [Stage3] <> "Rejected"
        && [Stage4] <> "Rejected"
        && [Verified Ekyc] <> BLANK (),
    1
)

Eyelyn9_0-1649134773743.png

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

IF(COALESCE([Stage4],"Rejected")<>"Rejected" && COALESCE([Stage3],"Rejected")<>"Rejected" && COALESCE([Stage2],"Rejected")<>"Rejected" && COALESCE([Stage1],"Rejected")<>"Rejected" && ISBLANK([Stage5]) && ISBLANK([Verified Ekyc]),1)

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.