Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
anatle1234
Contributor III
Contributor III

calculate DIF between tow rows

Hi,

I have this table:

Capture.PNG

the last row is the difference between the third and first rows.

what do I put in the expression in order to show difference?>

thanks,

Anat

8 Replies
mdmukramali
Specialist III
Specialist III

Hi,

Can you attach Sample Data.

Anil_Babu_Samineni

Thus Plan\Target PTDS and Actual - Completed are under field??

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
anatle1234
Contributor III
Contributor III
Author

hi,

I defined those fields like this in the transform script:

left join (Table)
load order_id,
if(Indicator='Indication','Plan_Target_PTDs',
if(Indicator<>'Indication' and project_status='In progress','In_progress_PTD',
if(Indicator<>'Indication' and project_status='completed','Actual_completed')))
as order_status_PTD
Resident Table;

the order_status_PTD , is the calculated field for Plan/Target PTD etc... those are Dates, and we group orders by those Dates.

Anil_Babu_Samineni

Would you mind, Can you attach application to test?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
anatle1234
Contributor III
Contributor III
Author

Hi

please see the excel and the model. I need the difference between row 1 and row3 in the model.

Anil_Babu_Samineni

PFA

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable

Thank you Anil,

I am working with Anat and we need help with that also:

  • Actual vs Planned displays gaps with the following color indication:
    • Red for negative gap.
    • Green for positive or zero gap.

Limor

Anil_Babu_Samineni

Perhaps this?

Don't duplicate for single issue - Re: % Prediction Accurancy

Capture.JPG

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful