Something similar to this has been asked for before, but I thought I would crystalize this version of things.
I would love for there to be a way for me to create and use a temporary variable inside a formula.
!!var [Parent_List] = [Parent_Ref].[Related Whatevers]!!
!!var [Derivative_List] = [Parent_List][Whatever_Values]!!
!!var [First_Item_In_List] = Index([Derivative_List], 1)!!
If(Count([Derivative_List]) > 0,
if([First_Item_In_List].[Items_Status] = "Active",
DO_SOMETHING_FOR_ACTIVE_THINGS,
if(CONTAINS([First_Item_In_List].[Items_Status], "Holding"),
DO_SOMETHING_FOR_HOLDING_THINGS,
[First_Item_In_List].[Items_Status]
)),
DO_SOMETHING_FOR_NO_RELATED_RECORDS
)
There are numerous times where we need to do X number of things to the same converted value:
It would be nice if there was a way to create the temporary bits inside the formula, where they're created on the fly when needed, and gone once the processing is done.
--------------------------------------------------------------------------------------------------
Literally taking all my cues here from Apps Script
--------------------------------------------------------------------------------------------------
If we could do this, we wouldn't have to either
If we could save the conversion into a temporary variable - INSIDE THE FORMULA - we could save so much overhead that might not need to be there. Many times, these "supporting columns" are literally just there because we need a piece of data at a certain point, or in a certain way, for things to work.
-------------------------------------------------------------------------------------------------------------
As always, thanks for considering!