In Pigment, I have tried the below formula for City metric:
The source metrics are with dimension: Employees and Role
The target metric is having dimension: Employees and Month.
I’ve tried the above formula, but it’s giving me the same abc value across for employees and for all months.
Can anyone assist me with this formula in Pigment
IF(ISDEFINED('erCity'.NametBY TEXTLIST: TIMEDIM('erStart Date',Month)]),
'erCity'.NametBY TEXTLIST: TIMEDIM('erStart Date',Month)],
IF(ISDEFINED(PREVIOUS(Month)),PREVIOUS(Month),'erCity'.NametBY TEXTLIST: TIMEDIM('erPlan Date',Month)]))
IF(ISNOTBLANK('Employees by Role'.CityoTEXTLIST: 'Employees by Role'.Start Date])
THEN 'Employees by Role'.CityoTEXTLIST: 'Employees by Role'.Start Date]
ELSE
IF
ISNOTBLANK(PREVIOUS(City))
THEN
PREVIOUS(City)
ELSE
'Employees by Role'.CityoTEXTLIST: 'Employees by Role'.Plan Date]
City metric in Anaplan with above formula.