<?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: removing members with 0 asset balance based on month selected, and calculating a simple average in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/removing-members-with-0-asset-balance-based-on-month-selected/m-p/4283425#M170007</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="762365" data-lia-user-login="Benjwill" class="lia-mention lia-mention-user"&gt;Benjwill&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are some of the changes I made.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;1. changed the “/” in Pension Withdrawal % - Selected to a DIVIDE function that performs division and returns the alternative result or BLANK() divided by 0.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. change 'Pensioner Withdrawal'[Withdrawal Type] = “Pension” in the Pension withdrawal calculation condition to&lt;BR /&gt;FILTER('Pensioner Withdrawal', 'Pensioner Withdrawal'[Withdrawal Type] = "Pension" &amp;amp;&amp;amp; 'AA_Measures'[Pension Opening Balance - Selected] &amp;lt;&amp;gt; 0)&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;3. found some measure where you may have accidentally written 3 instead of 2 and I changed it.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;As a result, the final result has also changed, you can refer to the attachment to check if this is the result you expect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your Current Period does not refer to this, please clarify in a follow-up reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Clara Gong&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Nov 2024 08:07:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-14T08:07:51Z</dc:date>
    <item>
      <title>removing members with 0 asset balance based on month selected, and calculating a simple average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/removing-members-with-0-asset-balance-based-on-month-selected/m-p/4277540#M169726</link>
      <description>&lt;P&gt;Hi everyone, I have a very difficult problem to solve. I hope you could help me. I don't know if I've done a good job explaining stuff, but here it is, so sorry if I am not being clear...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 4 tables:&lt;/P&gt;&lt;P&gt;1. pensioner table, which is a list of pensioners' name, age, sex etc. like a DIM_Customer table.&lt;/P&gt;&lt;P&gt;2. pensioner withdrawal table: amount of money that each pensioner withdraws each month (monthly data)&lt;/P&gt;&lt;P&gt;3. pensioner balance table: amount of money left at the end of each month for each pensioner, after withdrawals are made (monthly data)&lt;/P&gt;&lt;P&gt;4. calendar table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both pension withdrawal table and pensioner balance table link to pensioner table via pensioner ID , and link to calendar table via end-of-month date.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My task is to calculate the 3/6/9/12/YTD-month withdrawal rate: how much pension is withdrawn for N months, as a percentage of opening pensioner balance, depending on the month selected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The below are my measures. If 30 September 2024 is selected as reporting month from Calendar, 6-month withdrawal rate calculation is as follows:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. how much pension is withdrawn during the previous 6 months:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[Withdrawal] = CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(PENSIONER_WITHDRAWAL[WITHDRAWAL_AMT]),&lt;/SPAN&gt;&lt;SPAN&gt;DATESINPERIOD&lt;/SPAN&gt;&lt;SPAN&gt;(DIM_Calendar[Date],&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(DIM_Calendar[Date]),-&lt;/SPAN&gt;&lt;SPAN&gt;6&lt;/SPAN&gt;&lt;SPAN&gt;,MONTH)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;2. Pensioner opening balance at 31 Mar 2024 (which is 6 months before 30 Sept 2024):&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[Opening balance] = CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(PENSIONER_BALANCE[CLOSING_BALANCE]),&lt;/SPAN&gt;&lt;SPAN&gt;DATESMTD&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DATEADD&lt;/SPAN&gt;&lt;SPAN&gt;(DIM_Calendar[Date],-&lt;/SPAN&gt;&lt;SPAN&gt;6&lt;/SPAN&gt;&lt;SPAN&gt;,MONTH)))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;3. Pension withdrawal rate =&amp;nbsp;[Withdrawal] /&amp;nbsp;[Opening balance]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;However, there are two issues with this method.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;A. I need to remove the pensioners who have zero $ opening balance (these pensioners only deposit and withdraw later than the opening balance month), which I don't know what to do.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;B. currently the members with big money balance or big withdrawal skew the withdrawal rate. To fix this, I'd like to calculate the withdrawal for each member first, and then averaging all members' withdrawal rates, rather than sum all withdrawals and then divide by all opening balances like the current method.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you very much for your help and support ... sorry if I am not being clear ...&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 11 Nov 2024 05:10:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/removing-members-with-0-asset-balance-based-on-month-selected/m-p/4277540#M169726</guid>
      <dc:creator>Benjwill</dc:creator>
      <dc:date>2024-11-11T05:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: removing members with 0 asset balance based on month selected, and calculating a simple average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/removing-members-with-0-asset-balance-based-on-month-selected/m-p/4277597#M169727</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="762365" data-lia-user-login="Benjwill" class="lia-mention lia-mention-user"&gt;Benjwill&lt;/a&gt;&amp;nbsp;, Try using updated measures&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Calculate the Withdrawal Amount:&lt;/P&gt;
&lt;P&gt;[Withdrawal] = &lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM(PENSIONER_WITHDRAWAL[WITHDRAWAL_AMT]),&lt;BR /&gt;DATESINPERIOD(DIM_Calendar[Date], MAX(DIM_Calendar[Date]), -6, MONTH)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Calculate the Opening Balance:&lt;/P&gt;
&lt;P&gt;[Opening Balance] = &lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM(PENSIONER_BALANCE[CLOSING_BALANCE]),&lt;BR /&gt;DATESMTD(DATEADD(DIM_Calendar[Date], -6, MONTH))&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Filter Out Pensioners with Zero Opening Balance:&lt;/P&gt;
&lt;P&gt;[Filtered Opening Balance] = &lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM(PENSIONER_BALANCE[CLOSING_BALANCE]),&lt;BR /&gt;DATESMTD(DATEADD(DIM_Calendar[Date], -6, MONTH)),&lt;BR /&gt;PENSIONER_BALANCE[CLOSING_BALANCE] &amp;gt; 0&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Calculate the Withdrawal Rate for Each Pensioner&lt;/P&gt;
&lt;P&gt;[Individual Withdrawal Rate] = &lt;BR /&gt;DIVIDE(&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM(PENSIONER_WITHDRAWAL[WITHDRAWAL_AMT]),&lt;BR /&gt;DATESINPERIOD(DIM_Calendar[Date], MAX(DIM_Calendar[Date]), -6, MONTH)&lt;BR /&gt;),&lt;BR /&gt;CALCULATE(&lt;BR /&gt;SUM(PENSIONER_BALANCE[CLOSING_BALANCE]),&lt;BR /&gt;DATESMTD(DATEADD(DIM_Calendar[Date], -6, MONTH)),&lt;BR /&gt;PENSIONER_BALANCE[CLOSING_BALANCE] &amp;gt; 0&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Calculate the Average Withdrawal Rate&lt;/P&gt;
&lt;P&gt;[Average Withdrawal Rate] = &lt;BR /&gt;AVERAGEX(&lt;BR /&gt;VALUES(PENSIONER[PENSIONER_ID]),&lt;BR /&gt;[Individual Withdrawal Rate]&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2024 05:54:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/removing-members-with-0-asset-balance-based-on-month-selected/m-p/4277597#M169727</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2024-11-11T05:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: removing members with 0 asset balance based on month selected, and calculating a simple average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/removing-members-with-0-asset-balance-based-on-month-selected/m-p/4278043#M169753</link>
      <description>&lt;P&gt;It seems like you’re trying to calculate the withdrawal rate for pensioners over a period of months while addressing two issues:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Excluding pensioners who have a zero opening balance.&lt;/LI&gt;&lt;LI&gt;Averaging withdrawal rates across pensioners rather than summing withdrawals and balances, to avoid large balances or withdrawals skewing the result.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Let’s break down how to address both issues in your measures.&lt;/P&gt;&lt;H3&gt;A. Excluding Pensioners with Zero Opening Balance&lt;/H3&gt;&lt;P&gt;You want to exclude pensioners with a zero balance from your calculation. This can be done by adding a filter to your Opening Balance calculation, ensuring that you only include pensioners who have a non-zero opening balance.&lt;/P&gt;&lt;P&gt;For your &lt;STRONG&gt;Opening Balance&lt;/STRONG&gt; measure, you can modify it like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DAX:
[Opening balance] = 
CALCULATE(
    SUM(PENSIONER_BALANCE[CLOSING_BALANCE]),
    DATESMTD(DATEADD(DIM_Calendar[Date], -6, MONTH)),
    PENSIONER_BALANCE[CLOSING_BALANCE] &amp;lt;&amp;gt; 0
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This ensures that you only consider pensioners with a non-zero balance when calculating the opening balance for the 6-month period.&lt;/P&gt;&lt;H3&gt;B. Averaging Withdrawal Rates per Pensioner&lt;/H3&gt;&lt;P&gt;Instead of calculating the total withdrawal amount for all pensioners and then dividing by the total opening balance, you want to first calculate the withdrawal rate for each pensioner and then average the withdrawal rates. This will avoid the skewing effect caused by very high balances or withdrawals.&lt;/P&gt;&lt;P&gt;To achieve this, you can create two separate measures:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Calculate the withdrawal rate for each pensioner.&lt;/LI&gt;&lt;LI&gt;Average those rates across all pensioners.&lt;/LI&gt;&lt;/OL&gt;&lt;H4&gt;Step 1: Withdrawal Rate for Each Pensioner&lt;/H4&gt;&lt;P&gt;You can create a measure that calculates the withdrawal rate for each individual pensioner:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DAX:
[Individual Withdrawal Rate] = 
DIVIDE(
    SUM(PENSIONER_WITHDRAWAL[WITHDRAWAL_AMT]), 
    CALCULATE(
        SUM(PENSIONER_BALANCE[CLOSING_BALANCE]),
        DATESMTD(DATEADD(DIM_Calendar[Date], -6, MONTH)),
        PENSIONER_BALANCE[CLOSING_BALANCE] &amp;lt;&amp;gt; 0
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This calculates the withdrawal rate for each pensioner by dividing their total withdrawals over the last 6 months by their opening balance for that period. The filter ensures only non-zero balances are considered.&lt;/P&gt;&lt;H4&gt;Step 2: Averaging the Withdrawal Rates&lt;/H4&gt;&lt;P&gt;Now, you can average the individual withdrawal rates across all pensioners:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DAX
[Average Withdrawal Rate] = 
AVERAGEX(
    FILTER(
        ALL(PENSIONER), 
        PENSIONER_BALANCE[CLOSING_BALANCE] &amp;lt;&amp;gt; 0
    ),
    [Individual Withdrawal Rate]
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This AVERAGEX function will calculate the average withdrawal rate for all pensioners, ensuring you exclude those with zero balances.&lt;/P&gt;&lt;H3&gt;Final Withdrawal Rate Measure&lt;/H3&gt;&lt;P&gt;Putting everything together, the final withdrawal rate measure can be written as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DAX
[Withdrawal Rate] = 
DIVIDE(
    [Withdrawal], 
    [Opening Balance]
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;[Withdrawal]&lt;/STRONG&gt; is the total withdrawal for the last N months (e.g., 6 months, which you’ve already calculated).&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;[Opening Balance]&lt;/STRONG&gt; is the total opening balance for the same period, excluding pensioners with zero balances.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This approach will:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Correctly handle pensioners with zero opening balances.&lt;/LI&gt;&lt;LI&gt;Average the withdrawal rates per pensioner, avoiding skewing by large balances or withdrawals.&lt;/LI&gt;&lt;/OL&gt;&lt;H3&gt;Conclusion&lt;/H3&gt;&lt;P&gt;These modifications should help you solve the two key issues you're facing:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Excluding pensioners with zero opening balances from the calculations.&lt;/LI&gt;&lt;LI&gt;Averaging withdrawal rates across pensioners to avoid large balances or withdrawals skewing the result.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Let me know if you need further clarification or help with any of the steps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution, this will help others!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If my response(s) assisted you in any way, don't forget to drop me a "&lt;STRONG&gt;Kudos&lt;/STRONG&gt;" &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;BR /&gt;Poojara&lt;BR /&gt;Data Analyst | MSBI Developer | Power BI Consultant&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2024 09:44:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/removing-members-with-0-asset-balance-based-on-month-selected/m-p/4278043#M169753</guid>
      <dc:creator>Poojara_D12</dc:creator>
      <dc:date>2024-11-11T09:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: removing members with 0 asset balance based on month selected, and calculating a simple average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/removing-members-with-0-asset-balance-based-on-month-selected/m-p/4278832#M169784</link>
      <description>&lt;P&gt;Hi Poojara_D12, thank you very much for your detailed reply.&lt;/P&gt;&lt;P&gt;I followed your method up to step 2 where this measure gives me an error:&lt;/P&gt;&lt;PRE&gt;DAX
[Average Withdrawal Rate] = 
AVERAGEX(
    FILTER(
        ALL(PENSIONER), 
        PENSIONER_BALANCE[CLOSING_BALANCE] &amp;lt;&amp;gt; 0
    ),
    [Individual Withdrawal Rate]
)&lt;/PRE&gt;&lt;P&gt;It doesn't accept Pensioner and Pensioner_balance to be in the same filter &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 00:53:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/removing-members-with-0-asset-balance-based-on-month-selected/m-p/4278832#M169784</guid>
      <dc:creator>Benjwill</dc:creator>
      <dc:date>2024-11-12T00:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: removing members with 0 asset balance based on month selected, and calculating a simple average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/removing-members-with-0-asset-balance-based-on-month-selected/m-p/4278942#M169786</link>
      <description>&lt;P&gt;Hi bhatu_gautam thank you very much for your detailed reply.&lt;/P&gt;&lt;P&gt;I followed your steps but it also didn't seem to work... Probably because of some errors in my model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 02:39:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/removing-members-with-0-asset-balance-based-on-month-selected/m-p/4278942#M169786</guid>
      <dc:creator>Benjwill</dc:creator>
      <dc:date>2024-11-12T02:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: removing members with 0 asset balance based on month selected, and calculating a simple average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/removing-members-with-0-asset-balance-based-on-month-selected/m-p/4279320#M169805</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="762365" data-lia-user-login="Benjwill" class="lia-mention lia-mention-user"&gt;Benjwill&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&amp;nbsp;We can better understand the problem and help you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Clara Gong&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 07:12:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/removing-members-with-0-asset-balance-based-on-month-selected/m-p/4279320#M169805</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-12T07:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: removing members with 0 asset balance based on month selected, and calculating a simple average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/removing-members-with-0-asset-balance-based-on-month-selected/m-p/4279679#M169829</link>
      <description>&lt;P&gt;woa woa thank you very much!!! I will prepare a simple pbix file and send you very soon&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":clapping_hands:"&gt;👏&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":folded_hands:"&gt;🙏&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 10:34:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/removing-members-with-0-asset-balance-based-on-month-selected/m-p/4279679#M169829</guid>
      <dc:creator>Benjwill</dc:creator>
      <dc:date>2024-11-12T10:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: removing members with 0 asset balance based on month selected, and calculating a simple average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/removing-members-with-0-asset-balance-based-on-month-selected/m-p/4281667#M169918</link>
      <description>&lt;P&gt;Hi Clara,&lt;/P&gt;&lt;P&gt;I've created a sample pbix file here with mock data (no confidential information). I was a little slow, it took me almost a day to create this file.&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1sO-foF0uEnFbfOeoIEke_4yT1-zZkQxq/view?usp=drive_link" target="_blank"&gt;https://drive.google.com/file/d/1sO-foF0uEnFbfOeoIEke_4yT1-zZkQxq/view?usp=drive_link&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've explained a bit more in the pbix file.&lt;/P&gt;&lt;P&gt;As explained I wish to remove the zero opening balance for whenever period chosen.&lt;/P&gt;&lt;P&gt;For example,&amp;nbsp;on the chart that for retail members aged 80 - 84, for last 3 months, pension withdrawal rate is 55.1%.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;But this rate is inflated, as can be seen in the table 1 below this chart in the pbix. Three members with 0 opening balance which I need to be removed.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Somehow including the opening balance filter for the table works. As in table 2:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;So it should be 25.6% not 55.1%. As can be seen I am able to remove for tables, but not column chart.&lt;/P&gt;&lt;P&gt;Secondly, I wonder if there is a way to&amp;nbsp;calculate the withdrawal for each member first, and then averaging all members' withdrawal rates, rather than sum all withdrawals and then divide by all opening balances like the current method.&lt;/P&gt;&lt;P&gt;Thank you very much in advance!&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="625922" data-lia-user-login="bhanu_gautam" class="lia-mention lia-mention-user"&gt;bhanu_gautam&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="837199" data-lia-user-login="Poojara_D12" class="lia-mention lia-mention-user"&gt;Poojara_D12&lt;/a&gt;&amp;nbsp; Google drive link is my pbix file if you guys could help me again it would be awesome!!!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2024 11:38:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/removing-members-with-0-asset-balance-based-on-month-selected/m-p/4281667#M169918</guid>
      <dc:creator>Benjwill</dc:creator>
      <dc:date>2024-11-13T11:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: removing members with 0 asset balance based on month selected, and calculating a simple average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/removing-members-with-0-asset-balance-based-on-month-selected/m-p/4283425#M170007</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="762365" data-lia-user-login="Benjwill" class="lia-mention lia-mention-user"&gt;Benjwill&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are some of the changes I made.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;1. changed the “/” in Pension Withdrawal % - Selected to a DIVIDE function that performs division and returns the alternative result or BLANK() divided by 0.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. change 'Pensioner Withdrawal'[Withdrawal Type] = “Pension” in the Pension withdrawal calculation condition to&lt;BR /&gt;FILTER('Pensioner Withdrawal', 'Pensioner Withdrawal'[Withdrawal Type] = "Pension" &amp;amp;&amp;amp; 'AA_Measures'[Pension Opening Balance - Selected] &amp;lt;&amp;gt; 0)&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;3. found some measure where you may have accidentally written 3 instead of 2 and I changed it.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;As a result, the final result has also changed, you can refer to the attachment to check if this is the result you expect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your Current Period does not refer to this, please clarify in a follow-up reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Clara Gong&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 08:07:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/removing-members-with-0-asset-balance-based-on-month-selected/m-p/4283425#M170007</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-14T08:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: removing members with 0 asset balance based on month selected, and calculating a simple average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/removing-members-with-0-asset-balance-based-on-month-selected/m-p/4283717#M170020</link>
      <description>&lt;P&gt;Hi Clara, words can't describe how happy I am feel right now. Yes I made a typo in one of these measures and it should be changed.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You're such an amazing Power BI SME and thanks again for helping me with power BI.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 09:57:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/removing-members-with-0-asset-balance-based-on-month-selected/m-p/4283717#M170020</guid>
      <dc:creator>Benjwill</dc:creator>
      <dc:date>2024-11-14T09:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: removing members with 0 asset balance based on month selected, and calculating a simple average</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/removing-members-with-0-asset-balance-based-on-month-selected/m-p/4283808#M170024</link>
      <description>&lt;P&gt;Hi Clara, actually could you help review these a bit more if it's OK?&lt;/P&gt;&lt;P&gt;Still with Reporting period selected as 30 Sept 2024, when I chose in the slicer "One month" or "Last 2 months", the column chart no longer display any columns.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Secondly, keeping the same 3 months, I looked at Pension withdrawals for Account51_1, both the pbix displays $33,127:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But should it be 42,252 (33,127 for Sept + 8039 for Aug + 1086 for Jul)? Even my original model (after fixing the error) was only able to sum Sept and Aug for 3 months period, so I am not sure I missed anything here...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 10:48:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/removing-members-with-0-asset-balance-based-on-month-selected/m-p/4283808#M170024</guid>
      <dc:creator>Benjwill</dc:creator>
      <dc:date>2024-11-14T10:48:32Z</dc:date>
    </item>
  </channel>
</rss>

