Forum Discussion
DAX - multiple conditions
- 9 years ago
I guess it works fine now in this version
Status = IF(Query1[BonusAmount] = 0 || Query1[BonusLeft] < 0 || Query1[EndDate] < TODAY() && Query1[EndDate] <> BLANK(); "CLOSED"; "active")
Am I right?
Hello
Here is result in my powerbi
The "EndDate" column is Date type.
U have Blank in End_Date column that is the problem.
If it is blank , then what u have to do ? u have to add that condition too.
- kjaworski9 years agoRegular Visitor
Ups.
If the EndDate is blank, it should be seen as EndDate > TODAY
- kjaworski9 years agoRegular Visitor
I guess it works fine now in this version
Status = IF(Query1[BonusAmount] = 0 || Query1[BonusLeft] < 0 || Query1[EndDate] < TODAY() && Query1[EndDate] <> BLANK(); "CLOSED"; "active")
Am I right?
- Baskar9 years agoResident Rockstar
Status =if ( Isblank(Query1[EndDate]) , "Active", IF(Query1[BonusAmount] = 0 || Query1[BonusLeft] < 0 || Query1[EndDate] < TODAY(), "CLOSED", "Active"))
Try this this will help u