Quantcast
Viewing all articles
Browse latest Browse all 217197

DAX - multiple conditions

Hello 

 

I'm trying to do simple filtering using multiple conditions. At least I thought it would be easy.

 

Here are the columns:

 

AmountAmountLeftEndDatestatus
100502016.12.31closed
10002016.12.31closed
100502017.01.31active

 

I try to make DAX for Status column, which would work simple way: 

if Amount <> 0 and AmountLeft > 0 and EndDate > TODAY - status is active 

if any of conditions are not fulfilled, status is closed

 

I tried to use:

Status = IF(Query1[Amount] = 0 || Query1[AmountLeft] < 0 || Query1[EndDate] <TODAY(); "CLOSED"; "active")

but it doesn't work properly.

 

I'd be obliged if someone could help.

 


Viewing all articles
Browse latest Browse all 217197

Trending Articles