Query on Parent function
Curious - Why wont we use Parent(Item('G2 Country')) for line item 3 (Region)?
because COuntry is already list formated, which is what you get with ITEM, so no need to redo it0
PARENT function needs list formatted line item / list as its parameter as it basically giving the parent of the list member ,
since a line item is already formatted by the G2 country list , i.e (item) so you can directly take parent(g2) to get g1 parent,
in case there was not any G2 country line item, you would have to do parent(parent(item(g3))0
You got excellent responses.
There is a much simpler reason to add to the list of why you should avoid using these "compound" formulas.
You might want to reference the inner formula (in this case Item () ) from another line item, so if you separate it you will easily have access to it.
Also, it's a matter of getting used to writing a simpler formula for Auditability PLAN.
Finally, Some functions won't allow you to use a compound formula as a parameter. For example, you can say
Source.line item[lookup: parent line item]
where parent line item = PARENT(ITEM(L3)
But you can't write
Source.line item[lookup: PARENT(ITEM(L3)]1