<?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 AND Operator in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/AND-Operator/m-p/381271#M156513</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I have a simple DAX formula that i want to use to distinct count the number of customers who have met a certain criteria. I have a table that defines these criteria i.e Tiers I am doing this on power bi and this is the measure that i am using;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;MTierB = 
var y = SUM('Brand Tiers'[TierB]),
var x = SUM('Brand Tiers'[TierA])																			
return CALCULATE(DISTINCTCOUNT('Sales By Customers'[CUSTOMER_StoreCode]), KEEPFILTERS(FILTER('Sales By Customers', 'Sales By Customers'[Total Sales in MSU] &amp;gt;= y AND  &amp;lt;=x )))

&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;I am getting a syntax error. The AND operator is underlined in red. Dont understand why, Please help out&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Mar 2018 02:47:59 GMT</pubDate>
    <dc:creator>Kevin_Gitonga</dc:creator>
    <dc:date>2018-03-22T02:47:59Z</dc:date>
    <item>
      <title>AND Operator</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/AND-Operator/m-p/381271#M156513</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have a simple DAX formula that i want to use to distinct count the number of customers who have met a certain criteria. I have a table that defines these criteria i.e Tiers I am doing this on power bi and this is the measure that i am using;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;MTierB = 
var y = SUM('Brand Tiers'[TierB]),
var x = SUM('Brand Tiers'[TierA])																			
return CALCULATE(DISTINCTCOUNT('Sales By Customers'[CUSTOMER_StoreCode]), KEEPFILTERS(FILTER('Sales By Customers', 'Sales By Customers'[Total Sales in MSU] &amp;gt;= y AND  &amp;lt;=x )))

&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;I am getting a syntax error. The AND operator is underlined in red. Dont understand why, Please help out&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2018 02:47:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/AND-Operator/m-p/381271#M156513</guid>
      <dc:creator>Kevin_Gitonga</dc:creator>
      <dc:date>2018-03-22T02:47:59Z</dc:date>
    </item>
  </channel>
</rss>

