cancel
Showing results for
Did you mean:
Highlighted
Frequent Visitor

## Help with IF OR

Hi there,

I am having difficulties with this formula

Is Store Closed1 =
IF(OR([Close Date Measure1]=0||(LASTDATE(Week[Date])>[Close Date Measure1]),1,0))

Baiscally i am trying to show that either the store closed date is blank or that the last date of the week is bigger than the closed date, it shld show up as 1.

Currently it is showing this error message Too many arguments were passed to the OR function. The maximum argument count for the function is 2

Could someone help me with this?? thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Super Contributor

## Re: Help with IF OR

Hi

Try this.

IF( [Close Date Measure1]=0 || LASTDATE(Week[Date])>[Close Date Measure1],1,0)

Thanks

Raj

4 REPLIES 4
Super Contributor

## Re: Help with IF OR

IF(OR([Close Date Measure1]=0,(LASTDATE(Week[Date])>[Close Date Measure1]),1,0))

Thanks

Raj

Frequent Visitor

## Re: Help with IF OR

Hi Raj,

It doesnt seem to work!

Pasted this

Is Store Closed1 =
IF(OR([Close Date Measure1]=0,(LASTDATE(Week[Date])>[Close Date Measure1]),1,0))

Still getting the same error message

Too many arguments were passed to the OR function. The maximum argument count for the function is 2

Super Contributor

## Re: Help with IF OR

Hi

Try this.

IF( [Close Date Measure1]=0 || LASTDATE(Week[Date])>[Close Date Measure1],1,0)

Thanks

Raj

Frequent Visitor

## Re: Help with IF OR

works thanks raj!

Announcements

#### Coming Soon: T-Shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

#### Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

#### Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

#### Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!