Rank Busy Products Within a Business Dimension
busy_rank_products_by_dimension
Read-only
How it behaves
Use this when the user asks for the top products separately inside each customer, product group, material center, customer state, salesperson, or one compatible scoped customer/product field. For a configured label such as Territory Manager, Channel, Dealer Type, or Brand, first resolve it with busy_get_dimension_catalog and pass the returned canonical key in dimension. Never infer OF1-OF10 meanings. It performs server-side dense ranking and returns sale/return components plus each product's complete-partition share. Keep rank_within for legacy dimensions; if both inputs are sent they must identify the same dimension. Do not use it for company-wide product ranking.