Forum Discussion
HenryJS
4 years agoPost Prodigy
Power 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]...
- 4 years ago
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
Samarth_18
4 years agoCommunity 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 null
Thanks,
Samarth