Entity type switch

Allows evaluating different signals based on the type of the entities being evaluated. This is useful when a single signal is evaluated for different types of entities, for example in a dashboard with multiple entity types.


Evaluate different sub-signals based on the type of eval entities.


mapping (Mapping[str,Signal]) – A map of entity type to signal. The entity type should be specified in the format ‘namespace.entity_type’ unless the entity type is in the global namespace, in which case only ‘entity_type’ is needed.


Signal that when evaluated for a company returns FactSet company sales and when evaluated for a brand returns brand_sales (assuming this signal exists):

entity_type_switch({'company':fundamental('sales'), 'ns.brand':brand_sales})