<?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 Using filter functions on a measure in table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-filter-functions-on-a-measure-in-table/m-p/2505422#M69369</link>
    <description>&lt;P&gt;Hi all, I am trying to show the email capture rate of my stores, but the table I am currently using shows all of the employees. I would like to show the email capture rate per store versus per employee. I am thinking maybe an ALL() would work? I have tried all() on the main store # table and columns but did not seem to work.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Current measure:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Email Capture % = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Invoice_[Customer_Email_Address]&lt;/SPAN&gt;&lt;SPAN&gt;) / &lt;/SPAN&gt;&lt;SPAN&gt;'Invoice_Detail_'&lt;/SPAN&gt;&lt;SPAN&gt;[GC]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Invoice_&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;P&gt;So for store 17, I want the email capture rate to be the same, showing the capture rate for the whole store instead of individually, and so on for the next stores. I have redacted some info. Thank you all for the help.&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 10 May 2022 17:20:17 GMT</pubDate>
    <dc:creator>abeirne</dc:creator>
    <dc:date>2022-05-10T17:20:17Z</dc:date>
    <item>
      <title>Using filter functions on a measure in table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-filter-functions-on-a-measure-in-table/m-p/2505422#M69369</link>
      <description>&lt;P&gt;Hi all, I am trying to show the email capture rate of my stores, but the table I am currently using shows all of the employees. I would like to show the email capture rate per store versus per employee. I am thinking maybe an ALL() would work? I have tried all() on the main store # table and columns but did not seem to work.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Current measure:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Email Capture % = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Invoice_[Customer_Email_Address]&lt;/SPAN&gt;&lt;SPAN&gt;) / &lt;/SPAN&gt;&lt;SPAN&gt;'Invoice_Detail_'&lt;/SPAN&gt;&lt;SPAN&gt;[GC]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Invoice_&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;P&gt;So for store 17, I want the email capture rate to be the same, showing the capture rate for the whole store instead of individually, and so on for the next stores. I have redacted some info. Thank you all for the help.&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 10 May 2022 17:20:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-filter-functions-on-a-measure-in-table/m-p/2505422#M69369</guid>
      <dc:creator>abeirne</dc:creator>
      <dc:date>2022-05-10T17:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using filter functions on a measure in table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-filter-functions-on-a-measure-in-table/m-p/2506572#M69421</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="344436" data-lia-user-login="abeirne" class="lia-mention lia-mention-user"&gt;abeirne&lt;/a&gt; , Not very clear. Try like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Current measure:&lt;BR /&gt;Email Capture % =&lt;BR /&gt;CALCULATE(&lt;BR /&gt;divide(DISTINCTCOUNT(Invoice_[Customer_Email_Address]) , 'Invoice_Detail_'[GC]),&lt;BR /&gt;ALLEXCEPT(Invoice_, Invoice_ [Store])&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 06:14:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-filter-functions-on-a-measure-in-table/m-p/2506572#M69421</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-05-11T06:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using filter functions on a measure in table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-filter-functions-on-a-measure-in-table/m-p/2507907#M69497</link>
      <description>&lt;P&gt;Yeah I know it was not super clear, sorry for that. I hadn't thought of the allexcept, I will try it. Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 13:34:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-filter-functions-on-a-measure-in-table/m-p/2507907#M69497</guid>
      <dc:creator>abeirne</dc:creator>
      <dc:date>2022-05-11T13:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using filter functions on a measure in table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-filter-functions-on-a-measure-in-table/m-p/2513124#M69759</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="344436" data-lia-user-login="abeirne" class="lia-mention lia-mention-user"&gt;abeirne&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are 'Invoice_Detail_' [GC] the same for the same stores?&lt;/P&gt;
&lt;P&gt;Please try this formula.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Email Capture % =
CALCULATE (
    DISTINCTCOUNT ( Invoice_[Customer_Email_Address] ),
    FILTER ( ALL ( Invoice_ ), [stores] = SELECTEDVALUE ( stores ) )
)
    / SELECTEDVALUE ( 'Invoice_Detail_'[GC] )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jay&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 09:49:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-filter-functions-on-a-measure-in-table/m-p/2513124#M69759</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-13T09:49:08Z</dc:date>
    </item>
  </channel>
</rss>

