Help with calculating due dates between subitem and his parent item

Hi, i dont know how to manage this use case.
Board structure: Items are Equipment to be calibrated, Subitems are calibration work orders.

Goal: To have equipment’s last due date on reflected or calculated on the main item based on the sub items date information.

Problem: i having a NaN result when i try to create a formula using a subitem resume column (on the main item) that show most recent value (its a date). So i was needing to add some days to the newest value shown in the resume subitem column, but i cannot operate with the shown value because the result of the formula says NaN-NaN-NaN.

As i can see this works when there is only 1 subitem, resume column shown this 1 subitem date, and formula works without errors. Problems is adding more subitems, resume column shown correct last value from this subitems, but formula doesnt work anymore.

Tried to calculate this from the subitems and then reflect a formula result on the parent item, but the resume column of subitem formula column doesnt seem to work correctly.

Any workaround? Any way to traslate date values from subitem to parent item and process it in the parent item? Or viceversa?

@JCorrell need help on this!

@hlopezvc

I’m about to close up shop for the night. Can you share your formula text?

Hi @JCorrell the NaN result is shown just calling the resume column value from the formula.
I cannot make any simple or complex formula if the resume value is shown like that.

@hlopezvc

What is the subitem formula?

Hi @JCorrell
IF({Frecuencia#Labels}=“Semestral”, DATE(YEAR({Date}),MONTH({Date})+6,DAY({Date})),DATE(YEAR({Date})+1,MONTH({Date}),DAY({Date})))

I tried both ways…

CASE NUMBER 1:

Subitems stores dates from each work order,
from the parent item i try to resume this subitem date colum and operate with formula at parent level, based on a frequency column i could add 6 or 12 months to the last date to obtain the REAL due date of this equipment.
Problem: i got “NaN-NaN-NaN” result and i cant operate this way.

CASE NUMBER 2

Subitems store dates from each work order, and the due date based on a frequency column (6 or 12 months) is added on the subitem level via formula column
Problem: i got a “0” result from the resume column of a formula in the subitem level.

As i can see the “resume” column shown in the parent item doesnt work pretty well when there is more than 1 subitem created.

So if its a monday problem because subitems are in beta, question will be if there is any way to achieve what i need using subitems. Because in need the detailed each day work in subitems.

Is there a new solution on this?

1 Like

@JCorrell could you find something to make this work or at least a workaround

Could it be as simple as mirroring the subitem column up to the main item & selecting the latest date as the displayed data?

Doesnt work i reported as a bug

@hlopezvc

I will take a look soon.

1 Like

@hlopezvc

Okay, I think this may help…

A “trick” to transfer a date formula value from subitems to parent item:
(This could be adjusted for other mirror columns as well.)

  1. Add DATEVALUE(FORMAT_DATE(formula)) to convert the date to a number.
    (OR similarly create an additional formula column referencing the first formula)
  2. Select “Show Summary on Parent Item”.
  3. On the new column in the parent, select “Settings>Customize Mirror column”.
  4. Change “Show summary as” to Max (or Min as appropriate).
  5. Create a new formula column on the parent with this formula: FORMAT_DATE({Subitems Formula Summary}).
  6. Replace “{Subitems Formula Summary}” in the above formula with the appropriate column reference.
  7. Tell yourself “Good Job, Me! I’m so awesome!”

@hlopezvc, For the subitem formula you gave above:
DATEVALUE(FORMAT_DATE(IF({Frecuencia#Labels}="Semestral", DATE(YEAR({Date}),MONTH({Date})+6,DAY({Date})),DATE(YEAR({Date})+1,MONTH({Date}),DAY({Date})))))

One note of explanation for those curious souls watching, the FORMAT_DATE() that I included is not necessary in this specific situation. The reason that I included it anyway was because if the “inner” formula value includes a time component, as could be the case if part of the formula included TODAY(), for example, time zone issues can cause the DATEVALUE() function to return unexpected results.


Jim - The Monday Man (YouTube Channel)
Watch Our Latest Video: DYNAMIC GROUPING - The Most Powerful monday Feature Ever? - YouTube
Contact me directly here: Contact – The Monday Man

1 Like

@JCorrell ok i will check on that and give you feedback!!!
thanks MondayMan!

@JCorrell you are the Monday Man, no doubt! It works perfectly!!!
As we contine waiting for a fix from Monday because this is clearly a bug.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.