<?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: Average number of transaction by members in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-number-of-transaction-by-members/m-p/4114025#M163280</link>
    <description>&lt;P&gt;DISTINCTCOUNT(&amp;nbsp;&lt;SPAN&gt;member foreign key ) - this can be placed against any field in your model (such as columns from your division table) to establish how many members appear in your transaction table for that field.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It can also be used for a grand total.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This assumes you have a correct relationship set up between Transactions and your Dimension tables.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Aug 2024 17:59:25 GMT</pubDate>
    <dc:creator>mark_endicott</dc:creator>
    <dc:date>2024-08-22T17:59:25Z</dc:date>
    <item>
      <title>Average number of transaction by members</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-number-of-transaction-by-members/m-p/4113662#M163267</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am very new in DAX . I am trying to find out the average of transactions by members. I tried this formula&amp;nbsp;&lt;!--  StartFragment   --&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN class=""&gt;(fTransactions[# négo]);fTransactions)&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class=""&gt;to find out the total of members for each division but I got the wrong number because one member has register no transaction.&lt;/SPAN&gt;&lt;!--  EndFragment   --&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 14:08:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-number-of-transaction-by-members/m-p/4113662#M163267</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-22T14:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Average number of transaction by members</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-number-of-transaction-by-members/m-p/4113786#M163270</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;- DAX has an iterating function for exactly this calculation. If you have something that idendifies your members you can try this in a measure (use your column names and calculation):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;AVERAGEX( VALUES( Table[Member Identifier] ), [Transactions] ) 
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This iterates through the members and will average the each of their transactions, so it will work at a total and member level. It will also work against other fields in your model.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this works, please accept as the solution it helps with visibility for others.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 15:12:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-number-of-transaction-by-members/m-p/4113786#M163270</guid>
      <dc:creator>mark_endicott</dc:creator>
      <dc:date>2024-08-22T15:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: Average number of transaction by members</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-number-of-transaction-by-members/m-p/4113787#M163271</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;use allexcept(mewmber) n your DAX&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 15:12:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-number-of-transaction-by-members/m-p/4113787#M163271</guid>
      <dc:creator>raji_n</dc:creator>
      <dc:date>2024-08-22T15:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Average number of transaction by members</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-number-of-transaction-by-members/m-p/4113861#M163273</link>
      <description>&lt;P&gt;I have 2 dimensions tables the first one has the Division and the second one has the member as primary key and the divsions is in the this table. I have the fact table, my transaction table. I have less members in my transaction table in total than in the dimension table because I have one member that registered 0 transactions. I am using the divide function to calculate my average so I need to find out the total of members including the one with no transaction but my total gave me on less. In total I have 51 and should get 52.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 15:57:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-number-of-transaction-by-members/m-p/4113861#M163273</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-22T15:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Average number of transaction by members</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-number-of-transaction-by-members/m-p/4113921#M163276</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;- As mentioned, I would use AVERAGEX( ) and use the member primary key inside VALUES( ), you do not then need to worry about the member with 0 transactions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This calculation will also work against your Division table so long as the [Transactions] Measure is something along the lines of COUNTROWS( Transactions )&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 16:48:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-number-of-transaction-by-members/m-p/4113921#M163276</guid>
      <dc:creator>mark_endicott</dc:creator>
      <dc:date>2024-08-22T16:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Average number of transaction by members</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-number-of-transaction-by-members/m-p/4113962#M163277</link>
      <description>&lt;P&gt;and if I want calculate just the total of members by division and the grand total ?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 17:10:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-number-of-transaction-by-members/m-p/4113962#M163277</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-22T17:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: Average number of transaction by members</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-number-of-transaction-by-members/m-p/4114025#M163280</link>
      <description>&lt;P&gt;DISTINCTCOUNT(&amp;nbsp;&lt;SPAN&gt;member foreign key ) - this can be placed against any field in your model (such as columns from your division table) to establish how many members appear in your transaction table for that field.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It can also be used for a grand total.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This assumes you have a correct relationship set up between Transactions and your Dimension tables.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 17:59:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-number-of-transaction-by-members/m-p/4114025#M163280</guid>
      <dc:creator>mark_endicott</dc:creator>
      <dc:date>2024-08-22T17:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Average number of transaction by members</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-number-of-transaction-by-members/m-p/4116370#M163414</link>
      <description>&lt;P&gt;If I have 20 memebers&amp;nbsp; in my dimension table for division 1 but in the fTransaction I have 17 left, with the Distinctcount function I will get the 17 members from the division 1. Both Division and Members tables dont have a relationship but both connect with the ftransaction table.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 18:48:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Average-number-of-transaction-by-members/m-p/4116370#M163414</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-23T18:48:54Z</dc:date>
    </item>
  </channel>
</rss>

