<?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 Calculate, Sum, Filters - Dax Query in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-Filters-Dax-Query/m-p/2836003#M90499</link>
    <description>&lt;DIV&gt;&lt;DIV&gt;Hi, How do i correct below formula in Power Bi. Criteria is: I need Sum of (USD) where we have not contacted customer for more than 15 days with specific excuse code description as mentioned in below formula with specific Ageing Bucket.&lt;/DIV&gt;&lt;DIV&gt;I am getting below error. Please let me know what changes should be done to correct the formula.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Error: True/False expression does not specific a column. Each True/False expressions used as a table filter expression must refer to exactly one column.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Last Engagement Made Greater than 15 days = CALCULATE(SUM('Raw Data'[USD]),'Raw Data'[Days since last engagement] = "Greater than 15days",'Raw Data'[Excuse Code Description] = "Business Interruption","Contact Made","Credit Balance Known to customer","0.Default","9.Govmt/Institution Slow Pay/Funding","7.Payment Awaiting Approval","11.Pending Support from Business","4.Customer Researching","5.Credit Balance,In Research","6.Unresponsive Customer","1.Initial Contact pre due date",'Raw Data'[Pocket] = "1-30","31-60","61-90","91-120","Over 120")&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 12 Oct 2022 07:34:35 GMT</pubDate>
    <dc:creator>JKHATRAK</dc:creator>
    <dc:date>2022-10-12T07:34:35Z</dc:date>
    <item>
      <title>Calculate, Sum, Filters - Dax Query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-Filters-Dax-Query/m-p/2836003#M90499</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;Hi, How do i correct below formula in Power Bi. Criteria is: I need Sum of (USD) where we have not contacted customer for more than 15 days with specific excuse code description as mentioned in below formula with specific Ageing Bucket.&lt;/DIV&gt;&lt;DIV&gt;I am getting below error. Please let me know what changes should be done to correct the formula.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Error: True/False expression does not specific a column. Each True/False expressions used as a table filter expression must refer to exactly one column.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Last Engagement Made Greater than 15 days = CALCULATE(SUM('Raw Data'[USD]),'Raw Data'[Days since last engagement] = "Greater than 15days",'Raw Data'[Excuse Code Description] = "Business Interruption","Contact Made","Credit Balance Known to customer","0.Default","9.Govmt/Institution Slow Pay/Funding","7.Payment Awaiting Approval","11.Pending Support from Business","4.Customer Researching","5.Credit Balance,In Research","6.Unresponsive Customer","1.Initial Contact pre due date",'Raw Data'[Pocket] = "1-30","31-60","61-90","91-120","Over 120")&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 12 Oct 2022 07:34:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-Filters-Dax-Query/m-p/2836003#M90499</guid>
      <dc:creator>JKHATRAK</dc:creator>
      <dc:date>2022-10-12T07:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate, Sum, Filters - Dax Query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-Filters-Dax-Query/m-p/2836075#M90501</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="444394" data-lia-user-login="JKHATRAK" class="lia-mention lia-mention-user"&gt;JKHATRAK&lt;/a&gt;&amp;nbsp;Hard to tell exactly but that is definitely incorrect syntax. Try one of these:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Last Engagement Made Greater than 15 days = 
	CALCULATE(
		SUM('Raw Data'[USD]),
		'Raw Data'[Days since last engagement] = "Greater than 15days",
		'Raw Data'[Excuse Code Description] IN { "Business Interruption","Contact Made","Credit Balance Known to customer","0.Default","9.Govmt/Institution Slow Pay/Funding","7.Payment Awaiting Approval","11.Pending Support from Business","4.Customer Researching","5.Credit Balance,In Research","6.Unresponsive Customer","1.Initial Contact pre due date" },
		'Raw Data'[Pocket] = "1-30","31-60","61-90","91-120","Over 120"
	)


Last Engagement Made Greater than 15 days = 
  VAR __Table =
	FILTER('Raw Data',
		'Raw Data'[Days since last engagement] = "Greater than 15days",
		'Raw Data'[Excuse Code Description] IN { "Business Interruption","Contact Made","Credit Balance Known to customer","0.Default","9.Govmt/Institution Slow Pay/Funding","7.Payment Awaiting Approval","11.Pending Support from Business","4.Customer Researching","5.Credit Balance,In Research","6.Unresponsive Customer","1.Initial Contact pre due date" },
		'Raw Data'[Pocket] = "1-30","31-60","61-90","91-120","Over 120"
	)
RETURN
  SUMX(__Table, [USD])
&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 12 Oct 2022 07:58:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-Filters-Dax-Query/m-p/2836075#M90501</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2022-10-12T07:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate, Sum, Filters - Dax Query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-Filters-Dax-Query/m-p/2839075#M90674</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="444394" data-lia-user-login="JKHATRAK" class="lia-mention lia-mention-user"&gt;JKHATRAK&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please update the formula of the measure [&lt;STRONG&gt;Last Engagement Made Greater than 15 days&lt;/STRONG&gt;] as below and check if it works or not...&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Last Engagement Made Greater than 15 days =
CALCULATE (
    SUM ( 'Raw Data'[USD] ),
    FILTER (
        'Raw Data',
        'Raw Data'[Days since last engagement] = "Greater than 15days"
            &amp;amp;&amp;amp; 'Raw Data'[Excuse Code Description]
            IN {
            "Business Interruption",
            "Contact Made",
            "Credit Balance Known to customer",
            "0.Default",
            "9.Govmt/Institution Slow Pay/Funding",
            "7.Payment Awaiting Approval",
            "11.Pending Support from Business",
            "4.Customer Researching",
            "5.Credit Balance,In Research",
            "6.Unresponsive Customer",
            "1.Initial Contact pre due date"
        }
            &amp;amp;&amp;amp; 'Raw Data'[Pocket] IN { "1-30", "31-60", "61-90", "91-120", "Over 120" }
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;And you can use &lt;A href="http://www.daxformatter.com/" target="_self"&gt;DAX Formatter&lt;/A&gt; to format your formula and check there is no syntax error...&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the above one can't help you get the desired result, please provide some&amp;nbsp;&lt;STRONG&gt;sample data&lt;/STRONG&gt;&amp;nbsp;in your table &lt;STRONG&gt;'Raw data'&lt;/STRONG&gt; (&lt;STRONG&gt;&lt;EM&gt;exclude&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM&gt;&lt;STRONG&gt;sensitive&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;EM&gt;data&lt;/EM&gt;&lt;/STRONG&gt;) with&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Text&lt;/STRONG&gt;&amp;nbsp;&lt;/FONT&gt;format and your&amp;nbsp;&lt;STRONG&gt;expected result&lt;/STRONG&gt;&amp;nbsp;with backend logic and special examples.&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;It is better&lt;/STRONG&gt;&amp;nbsp;&lt;/FONT&gt;if you can share a&amp;nbsp;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;simplified&lt;/STRONG&gt;&amp;nbsp;&lt;/FONT&gt;pbix file. You can refer the following link to upload the file to the community. Thank you.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FDesktop%2FHow-to-upload-PBI-in-Community%2Fm-p%2F1672886&amp;amp;data=04%7C01%7Cv-yiruan%40microsoft.com%7C4f580813734d4a8355b008da16f6e91a%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637847547341062885%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;amp;sdata=YJvujige2YITXKbKED9JieQm5LBdf%2F3IYPM4ggdiijQ%3D&amp;amp;reserved=0" target="_blank" rel="nofollow noopener noreferrer"&gt;How to upload PBI in Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 09:06:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-Filters-Dax-Query/m-p/2839075#M90674</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-13T09:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate, Sum, Filters - Dax Query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-Filters-Dax-Query/m-p/2839275#M90679</link>
      <description>&lt;P&gt;Thank you Very Much. This works &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 09:48:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-Filters-Dax-Query/m-p/2839275#M90679</guid>
      <dc:creator>JKHATRAK</dc:creator>
      <dc:date>2022-10-13T09:48:35Z</dc:date>
    </item>
  </channel>
</rss>

