たとえば、Google アナリティクスの「国」ディメンションに基づくコントロールは、ページ内で Google アナリティクスのデータソースを使用しているすべてのコンポーネントに適用されます(接続先のビューが互いに異なっていても問題になりません)。これは、アナリティクスのデータソースは共通のフィールド セットを持っているためです。ただし、アナリティクスのオプション機能(拡張 e コマースなど)を使用すると独自の(アナリティクスの全データソースに共通ではない)フィールドが追加されるため、その機能を使用していないプロパティやビューに基づくコントロールとは互換性がなくなる可能性があります。
基盤にしているデータソースの種類が異なるコンポーネントに対しては、たとえ見かけ上のフィールド名が共通でも、基本的にはフィルタを適用できません。フィルタ処理は、データソース内に表示されているフィールド名ではなく、内部的なフィールド ID をもとに行われているためです(なお、内部 ID はデータソースにフィールドを作成した時点で決まっており、後から編集することはできません)。
例
たとえば、同じレポート内で 3 種類のデータソースを使用しているとします。1 つは Google スプレッドシート、残り 2 つはアナリティクスのデータソースです。どのデータソースにも「国」という名前のフィールドがありますが、内部構造が共通しているのはアナリティクスのデータソース同士だけです。よって、アナリティクスのグラフのコントロールでは、両方のアナリティクス データソースの「国」ディメンションを使用できますが、フィルタ内容は Google スプレッドシートのグラフには適用されません。逆に、Google スプレッドシートのデータソースの「国」ディメンションに基づくコントロールは、Google スプレッドシートのグラフには適用されますが、アナリティクスのグラフには影響しません。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-07-31 UTC。"],[],[],null,["# Use controls across data sources\n\nIn a report based on a single data source, a control affects all the charts and other controls in the report. In reports with multiple data sources, how the control works depends on the data sources involved.\n\nAs a general rule, controls can filter charts from different data sources as long as the data sources share the same internal structure (schema). In practice, this means that you can filter across data sources if:\n\na) the data sources were created using the same [connector](/looker/docs/studio/connector), and\n\nb) the data sources have a fixed schema, with a predefined set of fields.\n\nFor example, a control based on the Google Analytics *Country* dimension applies to all components on the page that also use a Google Analytics data source, even if they connect to different views. This is because all Analytics data sources have the same default field set. (Note that optional features in Analytics, such as Enhanced Ecommerce, will produce additional fields that may not exist in all Analytics data sources, and therefore, not be compatible with controls based on properties or views without those features.)\n\nFiltering across data sources generally won't work if the charts involved are based on data sources of different types, even if the fields have the same visible name. This is because filtering is based on the *internal* field IDs, not the visible field names in the data source. (And, once a field has been created in the data source, you can't edit the internal ID.)\n\nExample\n-------\n\nSay you have a report with 3 different data sources: one from Google Sheets, and two from Analytics. Even if all three data sources include a field with the visible name of \"Country,\" only the Analytics data sources share the same internal structure. A control for the Analytics charts can use the *Country* dimension from either data source, but it won't filter the Google Sheets chart. Conversely, a control based on the Sheets *Country* dimension will filter the Sheets-based chart, but won't affect the Analytics charts."]]