09-15-2026 02:37 AM
Goal:
I have a CustomerGroup table where a customer can appear multiple times (one row per Concept per time period), so customer_code is not unique in this table. I want users to filter by Concept on a dashboard and have that filter apply to our sales-orders table (SL_CustomerOrders) - showing only sales for customers who belong to the selected Concept - without duplicating or losing any sales rows.
Schema setup:
So both CustomerGroup and SL_CustomerOrders are Children of the same Parent, Customer.
What I tried:
I want to filter Concept (from CustomerGroup) and have it cascade to SL_CustomerOrders via Customer as the bridge, without joining CustomerGroup directly to SL_CustomerOrders (that caused sales duplication when tried via MV/SQL join).
I set CustomerGroup as the Base Table on the insight, but the Query Plan Viewer shows SL_CustomerOrders completely disconnected from Customer/CustomerGroup in the plan - [attach query plan screenshot].
I then tried switching the Base Table to SL_CustomerOrders instead, expecting Incorta to traverse SL_CustomerOrders → Customer → CustomerGroup for the filter, but i end up with same result: concept from CustomerGroup as filter has no effect.
Question:
Happy to share more schema/query plan screenshots if useful.