# Equation in PHX

**URL:** <https://forum.certara.com/t/equation-in-phx/2331>\
**Category:** Phoenix WNL basics\
**Created:** [October 25, 2011, 10:32am UTC](https://forum.certara.com/t/equation-in-phx/2331 "2011-10-25T10:32:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![boetschc](https://avatars.discourse-cdn.com/v4/letter/b/35a633/32.png) [@boetschc](https://forum.certara.com/u/boetschc)\
**Post date:** [October 25, 2011, 10:32am UTC](https://forum.certara.com/t/equation-in-phx/2331/1 "2011-10-25T10:32:25Z")

</div>

Hi, In the previous WNL version, you were able to write equation in an excel format. I am trying to create a column to be able to filter one dose only after a specific time point. Previously, with WNL 5, I would have wrote the below equation: if(and(Dose=X,Time\>60),1,0) How do you do it in PHX? It seems the software doesn’t know the AND function. Is it the same issue with the OR statement?

---

<div class="post-metadata">

**Author:** ![ecolby](https://avatars.discourse-cdn.com/v4/letter/e/bb73d2/32.png) [@ecolby](https://forum.certara.com/u/ecolby)\
**Post date:** [October 25, 2011, 12:24pm UTC](https://forum.certara.com/t/equation-in-phx/2331/2 "2011-10-25T12:24:05Z")

</div>

If it’s a column transformation: if(Dose=X,if(time\>60,1,0),0) if it’s a PML model: (Dose==X)&&(Time\>60) or (Dose==X)&&(t\>60)
