I have a Level Aware Calculation (LAC) in my QuickSight Dashboard as follows:
%Constraint = {Processed Trailers}/{Max Appointment}
Definitions:
Processed Trailers = distinct_countIf({inbound_ship_appointment_id},{anchor_date} = {checkin_shift_date})
Max Appointment = SUM (MAX ({max_appointment_constraint},[{warehouse_id},{appointment_type},{anchor_date},{Shift Name}]))
My Dataset is a merger of two datasets.
- Trailer Level Data [PK: inbound_ship_appointment_id, anchor_date ]
- Shift Constraint table [PK: warehouse_id, anchor_date, shift_name, appointment_type]
The purpose of the %Constraint metric is to compare the total number of trailers processed by each warehouse (by date, shift, and appointment type) with the maximum appointments enabled in my constraint table for each site, date, shift, and appointment type.
My %Constraint metric works correctly and displays accurate percentages. However, I cannot sort my visuals by this column to see the top/bottom warehouses in terms of %Constraint. When attempting to sort my pivot table by %Constraint, I receive the following error:
The Level Aware Calculation (LAC) aggregate expressions is not supported in this calculation at this moment. Please remove the LAC aggregation expression from metrics.
I also want to analyze this data in heatmaps and bar charts but face the same sorting issue. Any assistance with this problem would be greatly appreciated.