<?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: dax help in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-help/m-p/1266511#M21237</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can't use a measure inside a boolean expression that is used as filter expression. There are certain rules related to this&lt;/P&gt;&lt;P&gt;&amp;nbsp;Refer to this: &lt;A href="https://docs.microsoft.com/en-us/dax/calculate-function-dax" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/dax/calculate-function-dax&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Apart from this your measure&amp;nbsp;&lt;SPAN&gt;[usa sku count] =&amp;nbsp; calculate(count(product[sku]),&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;[all units usa]&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;1) doesn't refer any column which needs to be filtered.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 01 Aug 2020 20:04:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-08-01T20:04:49Z</dc:date>
    <item>
      <title>dax help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-help/m-p/1266383#M21220</link>
      <description>&lt;P&gt;&amp;nbsp;- hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I need count of my bidc column where "all units usa" measure is greater than 10.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I am not able to write measure inside a calculate function as filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; =Calculate(count(dac),[all units usa]&amp;gt;10)&amp;nbsp; &amp;nbsp;---this is showing error.. even i tried with variable still getting a error.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;any help ?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Aug 2020 14:37:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-help/m-p/1266383#M21220</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-01T14:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: dax help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-help/m-p/1266384#M21221</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;-&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = COUNTX(FILTER('Table'[all units usa] &amp;gt; 10),[dac])

or

Measure = CALCULATE(COUNT('Table'[dac]),FILTER('Table'[all units usa] &amp;gt; 10))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that does not help,&amp;nbsp;please first check if your issue is a common issue listed here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, please see this post regarding How to Get Your Question Answered Quickly: &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;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Aug 2020 14:52:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-help/m-p/1266384#M21221</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-08-01T14:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: dax help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-help/m-p/1266440#M21224</link>
      <description>&lt;P&gt;no..its not working...&lt;/P&gt;</description>
      <pubDate>Sat, 01 Aug 2020 16:03:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-help/m-p/1266440#M21224</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-01T16:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: dax help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-help/m-p/1266472#M21230</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What is the error and how is the measure&amp;nbsp;&lt;SPAN&gt;[all units usa] constructed?&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;________________________&lt;/P&gt;&lt;P&gt;Did I answer your question? Mark this post as a solution, this will help others!.&lt;/P&gt;&lt;P&gt;Click on the Thumbs-Up icon on the right if you like this reply &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;I&gt;&lt;A href="https://www.youtube.com/channel/UCKwBEguA8IlBubIobaOormg?sub_confirmation=1" target="_blank"&gt;YouTube, &lt;/A&gt;&lt;A href="https://linkedin.com/in/fowmy" target="_blank"&gt;LinkedIn&lt;/A&gt;&lt;/I&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Aug 2020 17:12:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-help/m-p/1266472#M21230</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2020-08-01T17:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: dax help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-help/m-p/1266501#M21235</link>
      <description>&lt;P&gt;hist units usa:=TRUNC(SUMX(product, product[historical_qty_usa])/[num distinct periods],2)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;[all units usa]&amp;nbsp;&lt;/SPAN&gt; = CALCULATE([hist units usa],FILTER(all('date'[date_key]), 'date'[date_key]=max('date'[date_key])))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now i want to create a measure like&amp;nbsp;&lt;/P&gt;&lt;P&gt;[usa sku count] =&amp;nbsp; calculate(count(product[sku]),&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;[all units usa]&amp;nbsp;&lt;/SPAN&gt;&amp;gt;1)&lt;/P&gt;&lt;P&gt;error msg -&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;A function 'CALCULATE' has been used in a True/False expression that is used as a table filter expression. This is not allowed.&lt;/PRE&gt;&lt;P&gt;hope i am able to clear you the requirement.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Aug 2020 19:23:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-help/m-p/1266501#M21235</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-01T19:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: dax help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-help/m-p/1266511#M21237</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can't use a measure inside a boolean expression that is used as filter expression. There are certain rules related to this&lt;/P&gt;&lt;P&gt;&amp;nbsp;Refer to this: &lt;A href="https://docs.microsoft.com/en-us/dax/calculate-function-dax" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/dax/calculate-function-dax&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Apart from this your measure&amp;nbsp;&lt;SPAN&gt;[usa sku count] =&amp;nbsp; calculate(count(product[sku]),&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;[all units usa]&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;1) doesn't refer any column which needs to be filtered.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Aug 2020 20:04:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-help/m-p/1266511#M21237</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-01T20:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: dax help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-help/m-p/1266532#M21240</link>
      <description>&lt;P&gt;hi, i understand those rules about calculate function..but i am looking for a help or work around.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Aug 2020 20:52:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-help/m-p/1266532#M21240</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-01T20:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: dax help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-help/m-p/1266617#M21245</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;can you share some sample data along with expected output and a clear description of the problem. Maybe then I can help you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Aug 2020 03:17:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-help/m-p/1266617#M21245</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-02T03:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: dax help</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-help/m-p/1270667#M21402</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Share sample data if you can.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;else try&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[usa sku count] =
VAR _allunitsusa = [all units usa]
RETURN
    COUNTX (
        FILTER (
            'Product',
            _allunitsusa &amp;gt; 1
        ),
        Product[Sku]
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Harsh Nathani&lt;BR /&gt;Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 07:54:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/dax-help/m-p/1270667#M21402</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-04T07:54:20Z</dc:date>
    </item>
  </channel>
</rss>

