Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
yvonne-c
Creator
Creator

Expression for sum (if contains text)

Hi 

Please can you help me with an expression for the following table.

I want to calculate the cost per "JobID" but only include "JobID" that contain code "VR" ( so the total for job IDs 42067, 42074, 42081)

Many thanks

 

   

JobIDCodePriceJob Cost
42066CPMT119.2
42066V12140.2
42067BOVT230.4
42067VR15245.4
42069CPMT119.2
42069V12140.2
42074TIM211.2
42074SYRI010.25
42074VR15
42074CDA172.8
42074OPMAT225
42074SYRI010.25
42074SYRI021.1425.6
42081TIM201.6
42081VR15216.6

 

10 Replies
Anonymous
Not applicable

PFB-

LOAD CodArt,

     max(Date(FromDate)) as FromDate,

     min(Date(ToDate) ) as ToDate,

     Price

    

FROM

(ooxml, embedded labels, table is Hoja1)

Group By CodArt , Price;