<?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 Re: Exclude GL account from equity in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-GL-account-from-equity/m-p/4810342#M183965</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1340645" data-lia-user-login="Djdjwhao" class="lia-mention lia-mention-user"&gt;Djdjwhao&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Just checking in to see if the issue has been resolved on your end. If the earlier suggestions helped, that’s great to hear! And if you’re still facing challenges, feel free to share more details happy to assist further.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Aug 2025 12:07:23 GMT</pubDate>
    <dc:creator>v-kpoloju-msft</dc:creator>
    <dc:date>2025-08-28T12:07:23Z</dc:date>
    <item>
      <title>Exclude GL account from equity</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-GL-account-from-equity/m-p/4804324#M183762</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to get some ratios to calculate without a certain P&amp;amp;L GL from the equity section for certain ratios. &amp;nbsp;I was able to get that to work for a few of the ratios that has the net or operating income via a calculation group but that same calculation group did not take out the excluded P&amp;amp;L item from the equity section. Please advise. &amp;nbsp;I used: &amp;nbsp;Calculate(selectedmeasure(), NOT chartofaccounts[GLnumber] IN {"000-9160-00"})&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 02:11:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-GL-account-from-equity/m-p/4804324#M183762</guid>
      <dc:creator>Djdjwhao</dc:creator>
      <dc:date>2025-08-22T02:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude GL account from equity</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-GL-account-from-equity/m-p/4804434#M183778</link>
      <description>&lt;P&gt;Your current DAX works for P&amp;amp;L but not for equity because equity measures are on the balance sheet.&lt;/P&gt;&lt;P&gt;Fix: Use a FILTER(ALL(...)) to exclude the GL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CALCULATE(&lt;BR /&gt;selectedmeasure(),&lt;BR /&gt;FILTER(&lt;BR /&gt;ALL(chartofaccounts),&lt;BR /&gt;chartofaccounts[GLnumber] &amp;lt;&amp;gt; "000-9160-00"&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 04:24:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-GL-account-from-equity/m-p/4804434#M183778</guid>
      <dc:creator>Shahid12523</dc:creator>
      <dc:date>2025-08-22T04:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude GL account from equity</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-GL-account-from-equity/m-p/4804843#M183793</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1340645" data-lia-user-login="Djdjwhao" class="lia-mention lia-mention-user"&gt;Djdjwhao&lt;/a&gt;,&lt;BR /&gt;Thanks for sharing the details of your scenario. Also, thanks to&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1265350" data-lia-user-login="Shahid12523" class="lia-mention lia-mention-user"&gt;Shahid12523&lt;/a&gt;, for his inputs on thread.&lt;BR /&gt;&lt;BR /&gt;From what you described, the reason your calculation group did not exclude the GL account from the equity section is that the equity measure itself is not wrapped with that filter logic. The calculation group works fine for your P&amp;amp;L measures (like Net/Operating Income), but equity will need a dedicated adjustment.&lt;BR /&gt;&lt;BR /&gt;You can try creating a separate equity measure like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Equity (Excluding GL 9160) =
CALCULATE(
[Equity],
KEEPFILTERS(
NOT chartofaccounts[GLnumber] IN {"000-9160-00"}
)
)&lt;/LI-CODE&gt;
&lt;P&gt;Then use this adjusted equity measure inside your ratios. That way the unwanted GL account is consistently excluded.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Refer these links: &lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-in/dax/calculate-function-dax" target="_blank"&gt;https://learn.microsoft.com/en-in/dax/calculate-function-dax&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/transform-model/calculation-groups" target="_blank"&gt;https://learn.microsoft.com/en-us/power-bi/transform-model/calculation-groups&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps. If you have any doubts regarding this, please feel free to ask here. We will be happy to help.&lt;/P&gt;
&lt;P&gt;Thank you for using the Microsoft Community Forum.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 10:15:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-GL-account-from-equity/m-p/4804843#M183793</guid>
      <dc:creator>v-kpoloju-msft</dc:creator>
      <dc:date>2025-08-22T10:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude GL account from equity</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-GL-account-from-equity/m-p/4805742#M183818</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It didn't work. &amp;nbsp;I don't know why.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Aug 2025 23:22:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-GL-account-from-equity/m-p/4805742#M183818</guid>
      <dc:creator>Djdjwhao</dc:creator>
      <dc:date>2025-08-23T23:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude GL account from equity</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-GL-account-from-equity/m-p/4806143#M183832</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1340645" data-lia-user-login="Djdjwhao" class="lia-mention lia-mention-user"&gt;Djdjwhao&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thank you for the follow-up question. Also, thank you for testing that out and letting us know. Since you mentioned it still did not work, could you confirm whether:&lt;BR /&gt;• You are seeing the same numbers as before (filter not applying), or&lt;BR /&gt;• You are running into an error message?&lt;BR /&gt;&lt;BR /&gt;To help isolate the issue, try placing the [Equity (Excluding GL 9160)] measure in a simple table along with the GLnumber column. That way, you can check if the unwanted GL account is still included.&lt;BR /&gt;&lt;BR /&gt;If the first approach did not work in your model, you could try this alternative version:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Equity (Excluding GL 9160) =
CALCULATE(
    [Equity],
    FILTER(
        ALL(chartofaccounts),
        chartofaccounts[GLnumber] &amp;lt;&amp;gt; "000-9160-00"
    )
)
&lt;/LI-CODE&gt;
&lt;P&gt;This uses FILTER(ALL(...)) to make sure the GL account is excluded regardless of slicer context.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Refer this link: &lt;A href="https://learn.microsoft.com/en-in/dax/filter-function-dax" target="_blank"&gt;https://learn.microsoft.com/en-in/dax/filter-function-dax&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps. If you have any doubts regarding this, please feel free to ask here. We will be happy to help.&lt;/P&gt;
&lt;P&gt;Thank you for using the Microsoft Community Forum.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Aug 2025 04:17:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-GL-account-from-equity/m-p/4806143#M183832</guid>
      <dc:creator>v-kpoloju-msft</dc:creator>
      <dc:date>2025-08-25T04:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude GL account from equity</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-GL-account-from-equity/m-p/4810342#M183965</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1340645" data-lia-user-login="Djdjwhao" class="lia-mention lia-mention-user"&gt;Djdjwhao&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Just checking in to see if the issue has been resolved on your end. If the earlier suggestions helped, that’s great to hear! And if you’re still facing challenges, feel free to share more details happy to assist further.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2025 12:07:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-GL-account-from-equity/m-p/4810342#M183965</guid>
      <dc:creator>v-kpoloju-msft</dc:creator>
      <dc:date>2025-08-28T12:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude GL account from equity</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-GL-account-from-equity/m-p/4812363#M184023</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1340645" data-lia-user-login="Djdjwhao" class="lia-mention lia-mention-user"&gt;Djdjwhao&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Hope you had a chance to try out the solution shared earlier. Let us know if anything needs further clarification or if there's an update from your side always here to help.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 31 Aug 2025 02:49:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-GL-account-from-equity/m-p/4812363#M184023</guid>
      <dc:creator>v-kpoloju-msft</dc:creator>
      <dc:date>2025-08-31T02:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude GL account from equity</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-GL-account-from-equity/m-p/4815112#M184130</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1340645" data-lia-user-login="Djdjwhao" class="lia-mention lia-mention-user"&gt;Djdjwhao&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Just wanted to follow up one last time. If the shared guidance worked for you, that’s wonderful hopefully it also helps others looking for similar answers. If there’s anything else you'd like to explore or clarify, don’t hesitate to reach out.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2025 04:05:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Exclude-GL-account-from-equity/m-p/4815112#M184130</guid>
      <dc:creator>v-kpoloju-msft</dc:creator>
      <dc:date>2025-09-03T04:05:03Z</dc:date>
    </item>
  </channel>
</rss>

