Forum Discussion

Smolik1980's avatar
Smolik1980
New Member
4 years ago
Solved

Pls Help Dream Team

I have one table "Action Status" and second "Forecasted Date" 

and now I would like to bild the function "IF".

If "Action Status" table has option "Completed and Forecasted Date" is "blank" it should give me a result "not correct"

for others they should give me info "correct.

 

Thanks! 

  • Hi, Smolik1980 

     

    This is a calculated column:

    CalculatedColumn= if(tbl[Action Status]="Completed"&&tbl[Forecasted Date]=BLANK(),"not correct","correct")

     If you want to create a measure, you need to modify this code.

    Like this:

    Measure =
    IF (
        MAX ( tbl[Action Status] ) = "Completed"
            && MAX ( tbl[Forecasted Date] ) = BLANK (),
        "not correct",
        "correct"
    )
    

    Did I answer your question ? Please mark my reply as solution. Thank you very much.
    If not, please feel free to ask me.

     

    Best Regards,
    Community Support Team _ Janey

6 Replies

  • smpa01's avatar
    smpa01
    Icon for Community Champion rankCommunity Champion

    Smolik1980 you want calculated column/measure? want this to be done through PQ/DAX? what is the relationship?

    Spare more details and provide sample data

     

    • Smolik1980's avatar
      Smolik1980
      New Member

      Hey

      im trying to add "New Measure" and created in power BI new dashboard which will give me this status about the errors

    • Smolik1980's avatar
      Smolik1980
      New Member
      Action statusForecasted date of execution 
      Completed13.10.2021correct
      Completed15.10.2021correct
      Completed not correct
      Completed not correct
      Completed14.10.2021correct
      Completed14.10.2021correct
      Completed not correct
      Completed not correct
      Completed01.11.2021correct
      Completed14.10.2021correct
      • smpa01's avatar
        smpa01
        Icon for Community Champion rankCommunity Champion

        Smolik1980  

        CalculatedColumn= if(tbl[Action Status]="Completed"&&tbl[Forecasted Date]=BLANK(),"not correct","correct")