Forum Discussion
HenryJS
Post Prodigy
4 years agoPower Query Column IF Statement
Hi all,
How can I create a Power Query IF Statement that states:
if [combined insurances] >= today then "Yes"
OR
if [Professional Indemnity Insurance] AND [Public Liability Insurance] >= today then "Yes"
Else null
Hi HenryJS ,
Try below code:-
if [combined insurances] >= DateTime.LocalNow() then "Yes" else if [Professional Indemnity Insurance] >= DateTime.LocalNow() and [Public Liability Insurance] >= DateTime.LocalNow() then "Yes" else nullThanks,
Samarth
1 Reply
- Samarth_18
Community Champion
Hi HenryJS ,
Try below code:-
if [combined insurances] >= DateTime.LocalNow() then "Yes" else if [Professional Indemnity Insurance] >= DateTime.LocalNow() and [Public Liability Insurance] >= DateTime.LocalNow() then "Yes" else nullThanks,
Samarth