Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Experts,
I have a table which has fields Product no, Delivery details.
below are some sample field values.
| Product no | Delivery Details |
| S125 | Delivered at Croydon |
| Not Delivered | |
| S126 | Not Delivered |
| Delivered at Birmingham | |
| S130 | Not Delivered |
| S140 | Delivered at Reading |
| Not Delivered |
I need to populate this in a pivot table, but i want to display one line per Product.
For ex. if a product has two lines Delivered at... & Not Delivered, then i want to display 'Delivered at..'
if a product has one line, display as it is.
The result should be,
| Product no | Delivery Details |
| S125 | Delivered at Croydon |
| S126 | Delivered at Birmingham |
| S130 | Not Delivered |
| S140 | Delivered at Reading |
i dont want to do this in script. i want this in table.
Please somebody help me
You could try:
Set a variable to keep things tidy:
vDelivered = if(WildMatch([Delivery Details],'*Delivered at*'),1,0)
Then use this expression:
if(sum($(vDelivered)) = 0, 'Not delivered', concat(if($(vDelivered) = 1,[Delivery Details])))
giving this table:
| Product no | Delivery Details |
|---|---|
| S125 | Delivered at Croydon |
| S126 | Delivered at Birmingham |
| S130 | Not delivered |
| S140 | Delivered at Reading |
Regards
Andrew
Thanks to all