<?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>topic DirectQuery with RLS- How to get Item level vs Total Level in Matrix in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DirectQuery-with-RLS-How-to-get-Item-level-vs-Total-Level-in/m-p/5125597#M187308</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Normally, I would use ISINSCOPE or HASONEVALUE to accomplish this, but neither of them are supported for DirectQuery with RLS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to show the correct average value in the total row of a matrix without using either of these or AVERAGEX.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;DJ&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Mar 2026 19:17:17 GMT</pubDate>
    <dc:creator>djurecic</dc:creator>
    <dc:date>2026-03-04T19:17:17Z</dc:date>
    <item>
      <title>DirectQuery with RLS- How to get Item level vs Total Level in Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DirectQuery-with-RLS-How-to-get-Item-level-vs-Total-Level-in/m-p/5125597#M187308</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Normally, I would use ISINSCOPE or HASONEVALUE to accomplish this, but neither of them are supported for DirectQuery with RLS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to show the correct average value in the total row of a matrix without using either of these or AVERAGEX.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;DJ&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2026 19:17:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DirectQuery-with-RLS-How-to-get-Item-level-vs-Total-Level-in/m-p/5125597#M187308</guid>
      <dc:creator>djurecic</dc:creator>
      <dc:date>2026-03-04T19:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: DirectQuery with RLS- How to get Item level vs Total Level in Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DirectQuery-with-RLS-How-to-get-Item-level-vs-Total-Level-in/m-p/5125603#M187309</link>
      <description>&lt;P&gt;I know you said "without using AVERAGEX", but I am not sure you could achieve without using those functions. Why can't you just use something like:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Avg Price =
VAR Items = VALUES ( DimItem[Item] )
RETURN
IF (
    COUNTROWS(Items) = 1,
    [Avg Price],
    AVERAGEX ( Items, [Avg Price] )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2026 18:56:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DirectQuery-with-RLS-How-to-get-Item-level-vs-Total-Level-in/m-p/5125603#M187309</guid>
      <dc:creator>cengizhanarslan</dc:creator>
      <dc:date>2026-03-04T18:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: DirectQuery with RLS- How to get Item level vs Total Level in Matrix</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DirectQuery-with-RLS-How-to-get-Item-level-vs-Total-Level-in/m-p/5125625#M187311</link>
      <description>&lt;P&gt;Thanks for your reply. I think I have misread the documentation. The exact wording is that&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"This function is not supported for use in DirectQuery mode when used in calculated columns or row-level security (RLS) rules." So it can be used with RLS, just not in the RLS rules themselves.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2026 19:37:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DirectQuery-with-RLS-How-to-get-Item-level-vs-Total-Level-in/m-p/5125625#M187311</guid>
      <dc:creator>djurecic</dc:creator>
      <dc:date>2026-03-04T19:37:37Z</dc:date>
    </item>
  </channel>
</rss>

