<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Datasphere Graphical View Filter WHERE IN in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/datasphere-graphical-view-filter-where-in/qaa-p/14084544#M4911558</link>
    <description>&lt;P class=""&gt;There is no direct equivalent to WHERE Field_1 NOT IN (SELECT DISTINCT FIELD_11 FROM ATABLE) in graphical view&lt;/P&gt;&lt;P class=""&gt;The workaround is:&lt;/P&gt;&lt;OL class=""&gt;&lt;LI&gt;Create a LEFT JOIN between your tables (YourTable.Field_1 = ATABLE.FIELD_11)&lt;/LI&gt;&lt;LI&gt;Filter for NULL values in the joined table column (WHERE ATABLE.FIELD_11 IS NULL)&lt;/LI&gt;&lt;/OL&gt;&lt;P class=""&gt;This produces the same results as NOT IN in most cases. Performance is actually often better with the LEFT JOIN approach than with NOT IN, especially for larger datasets.&lt;/P&gt;&lt;P class=""&gt;Choosing SQL View in that case can be a good option - if you see that the logic will be simpler that way.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Apr 2025 11:33:00 GMT</pubDate>
    <dc:creator>michal_majer</dc:creator>
    <dc:date>2025-04-23T11:33:00Z</dc:date>
    <item>
      <title>Datasphere Graphical View Filter WHERE IN</title>
      <link>https://community.sap.com/t5/technology-q-a/datasphere-graphical-view-filter-where-in/qaq-p/14084086</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;When creating a SQL view its quite easy to write in a WHERE clause the code&lt;/P&gt;&lt;P&gt;WHERE Field_1 NOT IN (SELECT DISTINCT FIELD_11 FROM ATABLE).&lt;/P&gt;&lt;P&gt;How would would one create this in a performant way in a Graphical view ?&lt;/P&gt;&lt;P&gt;I know you could Join 2 Tables and then FILTER the result on a field being Blank/Empty, but is that performant. At this moment I see no posibility to do this easily.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 06:02:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/datasphere-graphical-view-filter-where-in/qaq-p/14084086</guid>
      <dc:creator>hleboeuf</dc:creator>
      <dc:date>2025-04-23T06:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Datasphere Graphical View Filter WHERE IN</title>
      <link>https://community.sap.com/t5/technology-q-a/datasphere-graphical-view-filter-where-in/qaa-p/14084544#M4911558</link>
      <description>&lt;P class=""&gt;There is no direct equivalent to WHERE Field_1 NOT IN (SELECT DISTINCT FIELD_11 FROM ATABLE) in graphical view&lt;/P&gt;&lt;P class=""&gt;The workaround is:&lt;/P&gt;&lt;OL class=""&gt;&lt;LI&gt;Create a LEFT JOIN between your tables (YourTable.Field_1 = ATABLE.FIELD_11)&lt;/LI&gt;&lt;LI&gt;Filter for NULL values in the joined table column (WHERE ATABLE.FIELD_11 IS NULL)&lt;/LI&gt;&lt;/OL&gt;&lt;P class=""&gt;This produces the same results as NOT IN in most cases. Performance is actually often better with the LEFT JOIN approach than with NOT IN, especially for larger datasets.&lt;/P&gt;&lt;P class=""&gt;Choosing SQL View in that case can be a good option - if you see that the logic will be simpler that way.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 11:33:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/datasphere-graphical-view-filter-where-in/qaa-p/14084544#M4911558</guid>
      <dc:creator>michal_majer</dc:creator>
      <dc:date>2025-04-23T11:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Datasphere Graphical View Filter WHERE IN</title>
      <link>https://community.sap.com/t5/technology-q-a/datasphere-graphical-view-filter-where-in/qaa-p/14085169#M4911667</link>
      <description>&lt;P&gt;Actually I think I am not sure if I understand the question right but you absolutly can do this. When you put a filter operator in a graphical view you can do it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[Field to filter]&amp;nbsp; in ( Select [Field to Filter] from [View] )&lt;BR /&gt;&lt;BR /&gt;Sadly I 've just changed company and I do not have access to Datasphere for the moment&amp;nbsp; to give you a proper answer but it is totally possible you just have to play with the syntax a little ( I had to use it also)&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2025 07:07:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/datasphere-graphical-view-filter-where-in/qaa-p/14085169#M4911667</guid>
      <dc:creator>aczeitnerBW</dc:creator>
      <dc:date>2025-04-24T07:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: Datasphere Graphical View Filter WHERE IN</title>
      <link>https://community.sap.com/t5/technology-q-a/datasphere-graphical-view-filter-where-in/qaa-p/14085213#M4911681</link>
      <description>&lt;P&gt;Oh nice, indeed it works like that:&lt;BR /&gt;ID NOT IN (SELECT DISTINCT ID FROM TABLE)&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2025 07:46:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/datasphere-graphical-view-filter-where-in/qaa-p/14085213#M4911681</guid>
      <dc:creator>michal_majer</dc:creator>
      <dc:date>2025-04-24T07:46:24Z</dc:date>
    </item>
  </channel>
</rss>

