Cross-source constraints
A cross-source filter is also a data movement decision
Composite models may send values from one source to another to evaluate relationships. Cross-source relationships are limited; their behavior and expense differ from same-source regular joins. Treat key cardinality, source trust, permissions and report grain as design constraints, not just performance tuning knobs.
Separate model roles and database identity
Source RLS evaluates the identity reaching the database; a shared stored credential is not automatically the report viewer. Model RLS restricts semantic-model data under supported role and permission conditions. Verify effective credentials, gateway/SSO configuration and roles independently. Report hiding, page navigation and slicers are not access controls. Ensure an allowed region filters both detail and aggregate paths; a policy that filters only one can expose unauthorized totals. Use actual viewer accounts in approved testing, not only an administrator.
Example 1 — reconcile a second-source target
An independent imported target has one row per month-region. Compare the detail after grouping, not a row-by-row join. January North actual 180 vs target 200 gives -20. Overall actual 540 vs target 560 gives -20. Joining targets directly to the eight detail rows repeats each target twice and produces a false total of 1120. Use a shared dimension at a supported common grain, and do not drill target values to customer without an allocation contract. SQL in the lab is an arithmetic oracle, not the native limited-relationship plan.
Example 2 — test authorization and missing keys
The synthetic viewer policy allows North only. Expected detail total 330, target 340, variance -10. South is unauthorized; an unknown viewer is denied, not mapped to all regions. For a customer detail request apply the same authorization before grouping. Test North, South and denied viewers on detail, aggregate, export and drillthrough. The SQLite verifier checks explicit WHERE predicates, not model RLS enforcement. Verify that restricted source values are not inadvertently sent to another connection.
Measure the whole query path
For the native lab, freeze source snapshot, model version, connector and gateway route. Capture the effective identity without storing secrets; record cache mode, number of visuals and filter selections. A report query may fan out across sources; count requests at each source and record median and tail latency across agreed repetitions. Keep native logs redacted. Do not use a local SQLite query plan to claim connector compatibility, aggregate hits, RLS or actual DirectQuery latency. Stop on result mismatch or permission failure.
Practice — approve or reject a design
Calculate the South-only revenue and target variance and explain why a shared source credential is insufficient evidence of viewer-specific RLS. Define one denied-user test and a reason to reject a proposed cross-source key transfer. Use the worksheet to record pass/fail and NOT RUN separately.
Sources consulted 2026-11-29: composite-model-guidance, rls-guidance, desktop-directquery-about, aggregations-advanced. Installed connector and native engine not tested.