<?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: Measure based off numbers in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-off-numbers/m-p/2173473#M50518</link>
    <description>&lt;P&gt;Thank you!! Worked beautifully&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Nov 2021 20:40:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-11-04T20:40:34Z</dc:date>
    <item>
      <title>Measure based off numbers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-off-numbers/m-p/2173434#M50516</link>
      <description>&lt;P&gt;I have a column "sales" in dataset "data" and whether sale was made or not (1 = sales, 0 = no sales)&lt;BR /&gt;&lt;BR /&gt;I am trying to create two measures for "sale" and "no sale"&lt;BR /&gt;&lt;BR /&gt;I tried:&lt;BR /&gt;No sale = COUNTROWS(FILTER(data,data[sales] = "0")) but i get an error saying filter is not the correct syntax&amp;nbsp;&lt;BR /&gt;this usually works based off text but im not sure how to do it by number&lt;BR /&gt;&lt;BR /&gt;looking through power bi forum found another measure:&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;No sale = CALCULATE(SUM(data[sales]); FILTER(data; data[sales]=0)))&lt;BR /&gt;but get same error for wrong syntax for filter&lt;BR /&gt;&lt;BR /&gt;what would be the correct syntax for this or is my entore measure off for what I am trying to do?&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 04 Nov 2021 20:11:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-off-numbers/m-p/2173434#M50516</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-04T20:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Measure based off numbers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-off-numbers/m-p/2173457#M50517</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp; this should work (whatever you are doing) without any issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take a look here and post the pbix/sample data here for debugging&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 20:22:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-off-numbers/m-p/2173457#M50517</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2021-11-04T20:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Measure based off numbers</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-off-numbers/m-p/2173473#M50518</link>
      <description>&lt;P&gt;Thank you!! Worked beautifully&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 20:40:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-based-off-numbers/m-p/2173473#M50518</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-04T20:40:34Z</dc:date>
    </item>
  </channel>
</rss>

