# Filter multiple phases

**URL:** <https://forums.combatlogforums.com/t/filter-multiple-phases/282>\
**Category:** Warcraft Logs\
**Created:** [April 14, 2016, 12:28pm UTC](https://forums.combatlogforums.com/t/filter-multiple-phases/282 "2016-04-14T12:28:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hermosote](https://avatars.discourse-cdn.com/v4/letter/h/7993a0/32.png) [@Hermosote](https://forums.combatlogforums.com/u/Hermosote)\
**Post date:** [April 14, 2016, 12:28pm UTC](https://forums.combatlogforums.com/t/filter-multiple-phases/282/1 "2016-04-14T12:28:12Z")

</div>

Greetings. I’d like to check how well we did on Mythic Archimonde, bust just the second and the third phase.

I have tried using an hpPercernt filter expression, ( resources.actor.name=“Archimonde” and resources.hppercent\<=70 )but I’m unable to make it work on all damage (it only shows damage done to archimonde when \<70%, not damage done to everybody when \<70%)

Is there a way to make it work? Thanks

---

<div class="post-metadata">

**Author:** ![serafim1991](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.combatlogforums.com/serafim1991/32/64_2.png) [@serafim1991](https://forums.combatlogforums.com/u/serafim1991)\
**Post date:** [April 14, 2016, 7:48pm UTC](https://forums.combatlogforums.com/t/filter-multiple-phases/282/2 "2016-04-14T19:48:14Z")

</div>

Trying to do somothing, but nothing happened. Very interesting question.  
Don’t know is it helped you but second phase starts by casting Purifying light by Exarch Yrel. Maybe whit this knowledge you can did what you need.

P.S. I also try to do something to solve this

---

<div class="post-metadata">

**Author:** ![serafim1991](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.combatlogforums.com/serafim1991/32/64_2.png) [@serafim1991](https://forums.combatlogforums.com/u/serafim1991)\
**Post date:** [April 15, 2016, 12:09am UTC](https://forums.combatlogforums.com/t/filter-multiple-phases/282/3 "2016-04-15T00:09:56Z")

</div>

I think I found a solution. Try to use this expression

`in range when inCategory("damage") = true from resources.actor.name = "Archimonde" and resources.hppercent <= 70 to resources.actor.name="Archimonde" and resources.hppercent = 0 group by source end`

To be honest I’m wrote a lot of expressions for this problem(I can do only simple expressions and do not understand how works most of expression pins, so just experimented with them) and a solution was found by accident. I only change “target” to “source” in `group by`.  
I checked results by deleting expression, use dropdown menu and sum dps by few people from 2nd and 3rd phase. They are almost identical to results from expression. Don’t know why results with expression and without it do not completely equal(only guess).

Also I have a question. At first I used `type = "damage"`. So, the question is: why dps by some classes(maybe only some specs) with `type = "damage"` a little bit better then with `inCategory("damage") = true`? What events(or something else) exclude “inCategory” and what events include “type” if it’s used for damage?

---

<div class="post-metadata">

**Author:** ![Kihra](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.combatlogforums.com/kihra/32/1116_2.png) [@Kihra](https://forums.combatlogforums.com/u/Kihra)\
**Post date:** [April 15, 2016, 9:26pm UTC](https://forums.combatlogforums.com/t/filter-multiple-phases/282/4 "2016-04-15T21:26:43Z")

</div>

You can use encounterPhase in expressions. For example to ask if an event occurs in the first two phases of a fight you could write:

encounterPhase = 1 or encounterPhase = 2

Example:

[https://www.warcraftlogs.com/reports/1qFKmw6XdMbpk8gJ#pins=2%24Off%24%23244F4B%24expression%24encounterPhase+%3D+1+or+encounterPhase+%3D+2&type=damage-done](https://www.warcraftlogs.com/reports/1qFKmw6XdMbpk8gJ#pins=2%24Off%24%23244F4B%24expression%24encounterPhase+%3D+1+or+encounterPhase+%3D+2&type=damage-done)
