Question: I have created a crystal report in CR9 that shows all live orders. 
Each live order has several operations associated with it and each of those have a status (basically if it is null it is incomplete, if it is 9 then it is complete). 
So for example:

Order 1 - 200 - Pieces of Steel

```
   Op 1      Issue Bar         (null)
   Op 2      Cut bar             9
   Op 3      Deburr Bar        (null)

```

Basically what I want to do is put the last completed operation on the same line as the order. So in the above instance, the last completed operation is Op 2 (cut bar) because it is the latest operation number that contains a 9.

I've set it up so the order number is the group and the details are the operations. 

I've looked at using Maximum() by group but I don't know how to do a maximum where a condition is true statement. The maximum just returns the latest one alphabetically anyway and I need it in relation to the op number. 
I've also tried suppressing the results but I don't know how to just report on the suppressed results. 

I can't use select expert to just display operations where status = 9 because there are some jobs that don't have any completed operations and these need to appear on the report too.

Answer: 
You shouldn't put `div` elements inside `<p>` elements. One simple way to fix it would be to replace `div` for `span`.

```
<p><span>Hello</span>&nbsp;<span class="show" /></p>

```
---

You can set display:inline-block propery to P tag

```
<p><span>Doe, John</span>&nbsp;<div class="show"></div></p>

.show {
    background-image: url(http://doc.jsfiddle.net/_downloads/jsfiddle-logo.png);
    background-size: contain;
    width: 40px;
    height: 40px;
    display: inline-block;
}
p{
    display: inline-block;
}

```

You can check here [JSFIDDLE](http://jsfiddle.net/sainath_patil/cr5afpd0/4/)