<?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: How to check if customer maintained balance throughout the month in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-check-if-customer-maintained-balance-throughout-the-month/m-p/2621102#M76351</link>
    <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="408033" data-lia-user-login="RickJani" class="lia-mention lia-mention-user"&gt;RickJani&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"balance is not zero but service fee is charged." Is there any calculation formula? You can express the result in the form of pictures, we can help you better.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jul 2022 02:16:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-07-06T02:16:25Z</dc:date>
    <item>
      <title>How to check if customer maintained balance throughout the month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-check-if-customer-maintained-balance-throughout-the-month/m-p/2614436#M75910</link>
      <description>&lt;P&gt;Hello folks,&lt;/P&gt;&lt;P&gt;I want to check if customer maintained &amp;gt; 0 balance every day for 3 months so bank won't charge them any service fee.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If any day within 3 months, customer balance was zero, then service fee is charged.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help me to find out how to accomplish this in power Bi?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rick&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 14:14:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-check-if-customer-maintained-balance-throughout-the-month/m-p/2614436#M75910</guid>
      <dc:creator>RickJani</dc:creator>
      <dc:date>2022-07-01T14:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if customer maintained balance throughout the month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-check-if-customer-maintained-balance-throughout-the-month/m-p/2614451#M75914</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="408033" data-lia-user-login="RickJani" class="lia-mention lia-mention-user"&gt;RickJani&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please give us more data or share your .pbix with us.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;If you would share your pbix, or dummy up some values in Excel both for current and expected data. Please copy and paste them into your post, rather than doing a picture, we may be able to help you.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please read this post to get your question answered more quickly:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Nathaniel&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 14:23:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-check-if-customer-maintained-balance-throughout-the-month/m-p/2614451#M75914</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2022-07-01T14:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if customer maintained balance throughout the month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-check-if-customer-maintained-balance-throughout-the-month/m-p/2614461#M75916</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="408033" data-lia-user-login="RickJani" class="lia-mention lia-mention-user"&gt;RickJani&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;If you have a column with the daily balance, you might create a column that is Fee due= If(table[Balance]&amp;gt;0,0,1) then your measure might be Penalty = If(Sum(table[Fee due]&amp;gt;0,"Penalty is due", "No Penalty")&lt;BR /&gt;Let me know if you have any questions.&lt;BR /&gt;&lt;BR /&gt;If this solves your issues, please mark it as the &lt;STRONG&gt;solution, &lt;/STRONG&gt;so that others can find it easily. &lt;STRONG&gt;Kudos &lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;are nice too.&lt;BR /&gt;Nathaniel&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 14:30:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-check-if-customer-maintained-balance-throughout-the-month/m-p/2614461#M75916</guid>
      <dc:creator>Nathaniel_C</dc:creator>
      <dc:date>2022-07-01T14:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if customer maintained balance throughout the month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-check-if-customer-maintained-balance-throughout-the-month/m-p/2614486#M75919</link>
      <description>&lt;P&gt;Many thanks Nathan! That was quick!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have data like this...I need to group by date by customer and check balance if it is more than zero&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&lt;/TD&gt;&lt;TD&gt;Cust ID&lt;/TD&gt;&lt;TD&gt;transaction&lt;/TD&gt;&lt;TD&gt;Amount&lt;/TD&gt;&lt;TD&gt;Balance&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01-Jan&lt;/TD&gt;&lt;TD&gt;cust 1&lt;/TD&gt;&lt;TD&gt;debit&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;600&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01-Jan&lt;/TD&gt;&lt;TD&gt;cust 2&lt;/TD&gt;&lt;TD&gt;credit&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;TD&gt;800&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;03-Jan&lt;/TD&gt;&lt;TD&gt;cust 3&lt;/TD&gt;&lt;TD&gt;debit&lt;/TD&gt;&lt;TD&gt;1800&lt;/TD&gt;&lt;TD&gt;2900&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;04-Jan&lt;/TD&gt;&lt;TD&gt;cust 1&lt;/TD&gt;&lt;TD&gt;credit&lt;/TD&gt;&lt;TD&gt;300&lt;/TD&gt;&lt;TD&gt;900&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;06-Jan&lt;/TD&gt;&lt;TD&gt;cust 4&lt;/TD&gt;&lt;TD&gt;credit&lt;/TD&gt;&lt;TD&gt;6000&lt;/TD&gt;&lt;TD&gt;18500&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;06-Jan&lt;/TD&gt;&lt;TD&gt;cust 2&lt;/TD&gt;&lt;TD&gt;debit&lt;/TD&gt;&lt;TD&gt;900&lt;/TD&gt;&lt;TD&gt;2000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;08-Jan&lt;/TD&gt;&lt;TD&gt;cust 2&lt;/TD&gt;&lt;TD&gt;debit&lt;/TD&gt;&lt;TD&gt;700&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Fri, 01 Jul 2022 14:45:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-check-if-customer-maintained-balance-throughout-the-month/m-p/2614486#M75919</guid>
      <dc:creator>RickJani</dc:creator>
      <dc:date>2022-07-01T14:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if customer maintained balance throughout the month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-check-if-customer-maintained-balance-throughout-the-month/m-p/2618848#M76214</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="408033" data-lia-user-login="RickJani" class="lia-mention lia-mention-user"&gt;RickJani&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I add some data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
MAX('Table'[Balance]) - MAX('Table'[Amount])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Flag =
var _today=TODAY()
var _mindate=DATE(
    YEAR(_today),MONTH(_today)-3,DAY(_today))
return
IF(
    MAX('Table'[Date])&amp;gt;=_mindate&amp;amp;&amp;amp;MAX('Table'[Date])&amp;lt;=TODAY()&amp;amp;&amp;amp;[Measure]&amp;gt;0,"NO","service fee is charged")&lt;/LI-CODE&gt;
&lt;P&gt;2. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If you need pbix, please click &lt;A href="https://m365x668238-my.sharepoint.com/:u:/g/personal/yangliu_m365x668238_onmicrosoft_com/ETLBgDUu20tLmecM_29zFZkBPd-zXLz5UDDBwimJ9XUKVQ?e=hqfBvF" target="_blank"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 06:29:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-check-if-customer-maintained-balance-throughout-the-month/m-p/2618848#M76214</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-05T06:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if customer maintained balance throughout the month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-check-if-customer-maintained-balance-throughout-the-month/m-p/2619938#M76269</link>
      <description>&lt;P&gt;Many thanks Liu. I really appreciate your effort. It works well except in last 2 rows where balance is not zero but service fee is charged.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 13:02:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-check-if-customer-maintained-balance-throughout-the-month/m-p/2619938#M76269</guid>
      <dc:creator>RickJani</dc:creator>
      <dc:date>2022-07-05T13:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if customer maintained balance throughout the month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-check-if-customer-maintained-balance-throughout-the-month/m-p/2621102#M76351</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="408033" data-lia-user-login="RickJani" class="lia-mention lia-mention-user"&gt;RickJani&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"balance is not zero but service fee is charged." Is there any calculation formula? You can express the result in the form of pictures, we can help you better.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 02:16:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-check-if-customer-maintained-balance-throughout-the-month/m-p/2621102#M76351</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-06T02:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if customer maintained balance throughout the month</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-check-if-customer-maintained-balance-throughout-the-month/m-p/2623234#M76515</link>
      <description>&lt;P&gt;Thanks for your help Liu.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 18:00:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-check-if-customer-maintained-balance-throughout-the-month/m-p/2623234#M76515</guid>
      <dc:creator>RickJani</dc:creator>
      <dc:date>2022-07-06T18:00:03Z</dc:date>
    </item>
  </channel>
</rss>

