Hi Koushik,
Sure, let me try to elaborate on the problem I’m trying to solve
I’m using LAC-A to build the following flags:
Min_PV_Offer : min({pv_offer},[reporting_period, period_id, vendor, imdb_id_pv])
Min_PV_rights : min({pv_rights},[reporting_period, period_id, vendor, imdb_id_pv])
Min_PV_avail : min({pv_avail},[reporting_period, period_id, vendor, imdb_id_pv])
Max_PV_Offer : max({pv_offer},[reporting_period, period_id, vendor, imdb_id_pv])
Max_PV_rights : max({pv_rights},[reporting_period, period_id, vendor, imdb_id_pv])
Max_PV_avail : max({pv_avail},[reporting_period, period_id, vendor, imdb_id_pv])
Max Future Avail : max(ifelse({is_future_release (c)} = ‘Y’,1,0),[{reporting_period}, {period_id}, vendor, {imdb_id_pv}])
Max PV Missing Type : max(ifelse({PV Missing (Type)}=‘B’,1,0),[{reporting_period}, {period_id}, vendor, {imdb_id_pv}])
The following logic then uses these flags to calculate the Availability Status which is calculated below:
ifelse(({Min_PV_Offer}=1 AND {Max Future Avail}=0), ‘Complete’,
(({Max_PV_Offer}=0 AND {Min_PV_rights}=1) OR ({Max_PV_Offer}=1 AND {Min_PV_rights}=1) OR ({Min_PV_rights}=1 AND {Max Future Avail}=1)),‘Backlog’,
({Max_PV_avail }=1 AND {Max PV Missing Type} = 1), ‘Backlog/Unavailed’,
({Max_PV_Offer} =1 AND {Min_PV_rights}=0 AND {Min_PV_avail}=0), ‘Complete/Unavailed’,
{Max_PV_avail }=0, ‘Unavailed’,
‘Backlog/Unavailed’)
When I try visualizing the Availability Status in a pivot table while creating the flags using LAC-A: I get the error that I cannot use LAC-A as a dimension. What I’m expecting is output in this form (refer column PV-Availability status_LAC-W)

Currently, the column has the wrong categorization as I tried using LAC-W to calculate the flags . Instead, I want to use LAC-A to calculate theflags and then build Availability Status using the ifelse construct and be able to visualize it in a pivot table in a similar format.
Please let me know what I’m doing wrong here.
Thanks,
Tanisha