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?
It working fine for me.
Check the date coolumn which datatype it is ?
create Calculated column .
Let me know what error if u getting.
Hello
Here is result in my powerbi
The "EndDate" column is Date type.
- Baskar9 years agoResident Rockstar
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?