M query and or

Wishmaster89

Board Regular
Joined
Jan 10, 2022
Messages
77
Office Version
  1. 2021
  2. 2019
  3. 2016
Platform
  1. Windows
  2. MacOS
Hello

I have added an additional column that checks an id and date
Power Query:
if [Users.UserILRSummary_ULN]="3423916388" and  [ILR Aims.StartDate] = #datetimezone(2019, 10, 11, 0, 0, 0, 1, 0) then "Withdraw" else null

I want to check another Id and start date in the same column so i tried the following but it didn't work. Please help?

Power Query:
if [Users.UserILRSummary_ULN]="3423916388" or "5400297551"[Users.UserILRSummary_ULN]="3423916388"  and  [ILR Aims.StartDate] = #datetimezone(2019, 10, 11, 0, 0, 0, 1, 0) or  [ILR Aims.StartDate] = #datetimezone(2019, 01, 19, 0, 0, 0, 1, 0)then "Withdraw" else null
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
What about something like this:
Power Query:
if ([Users.UserILRSummary_ULN]="3423916388" and  [ILR Aims.StartDate] = #datetimezone(2019, 10, 11, 0, 0, 0, 1, 0)) or  ([Users.UserILRSummary_ULN]="5400297551" and  [ILR Aims.StartDate] = #datetimezone(2019, 01, 19, 0, 0, 0, 1, 0)) then "Withdraw" else null
 
Upvote 0
Solution

Forum statistics

Threads
1,223,666
Messages
6,173,672
Members
452,527
Latest member
ineedexcelhelptoday

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top