<?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 for Constant Line where numerator is a Measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Constant-Line-where-numerator-is-a-Measure/m-p/3989709#M154902</link>
    <description>&lt;P&gt;Like I said, all I could promise is that my solution wouldn't "&lt;SPAN&gt;throw the (same) error", because I don't have insight into your data model.&amp;nbsp; And voila, it is now throwing a different error!&amp;nbsp; Success!&amp;nbsp; (sort of)&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_with_tears_of_joy:"&gt;😂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you re-create the problem with sample data in a .pbix file and upload it to google drive or catbox.moe or similar, then post the link, it is going to be much easier for me to help without having to ask a million questions back and forth&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;What I can tell you is that measures can be referred to without the Table name in which they are found.&amp;nbsp; Power BI enforces measures having unique names, so you can just refer to it as [COUNT COMBINED USE], you don't need the stuff before it.&amp;nbsp; I'm not promising this will fix your problem, just something to note.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jun 2024 00:02:52 GMT</pubDate>
    <dc:creator>kpost</dc:creator>
    <dc:date>2024-06-13T00:02:52Z</dc:date>
    <item>
      <title>Measure for Constant Line where numerator is a Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Constant-Line-where-numerator-is-a-Measure/m-p/3989665#M154899</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I need help with coming up with a measure that will be used as constant line to represent companywide average productivity versus an individual's productivity.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The numerator is a "measure" I created and it includes the productivity count.&lt;/P&gt;&lt;P&gt;The denominator is from the fact table and includes the count of all users&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The 'Measure' i'm thinking will look like this&lt;/P&gt;&lt;P&gt;1. Company Avg = CALCULATE( Average ('Table1'[COUNT COMBINED USE], ALL ('Table1'[USERS]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Table1 is the fact table&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;COUNT COMBINED USE is the Measure I created which includes productivity througout the day&lt;/LI&gt;&lt;LI&gt;USERS is the list of company users.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Anything I'm doing wrong? I get the following error: "too many arguments were passed to the AVERAGE function. The maximum argument count for the function is 1"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advanced&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>Wed, 12 Jun 2024 22:58:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Constant-Line-where-numerator-is-a-Measure/m-p/3989665#M154899</guid>
      <dc:creator>emutuc</dc:creator>
      <dc:date>2024-06-12T22:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for Constant Line where numerator is a Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Constant-Line-where-numerator-is-a-Measure/m-p/3989687#M154900</link>
      <description>&lt;P&gt;The part where you modify the filter context using ALL() should be an argument to CALCULATE, not an argument to AVERAGE.&lt;BR /&gt;&lt;BR /&gt;So I cannot promise that this will do what you are intending since I can't see your data model, but I &lt;EM&gt;can&lt;/EM&gt; promise you that this won't throw the (same) error:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Company Avg = CALCULATE(Average('Table1'[COUNT COMBINED USE]), ALL('Table1'[USERS]))&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Note that a parenthesis has been added.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 23:36:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Constant-Line-where-numerator-is-a-Measure/m-p/3989687#M154900</guid>
      <dc:creator>kpost</dc:creator>
      <dc:date>2024-06-12T23:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for Constant Line where numerator is a Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Constant-Line-where-numerator-is-a-Measure/m-p/3989697#M154901</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="310881" data-lia-user-login="kpost" class="lia-mention lia-mention-user"&gt;kpost&lt;/a&gt;&amp;nbsp;Thank you for the reply.&amp;nbsp; It's not working.&amp;nbsp; I notice that the [COUNT COMBINED USE] part isn't populating when i write the expression.&amp;nbsp; Maybe because it's a measure?&lt;/P&gt;&lt;P&gt;see below for measure expression and error message&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&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;</description>
      <pubDate>Wed, 12 Jun 2024 23:53:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Constant-Line-where-numerator-is-a-Measure/m-p/3989697#M154901</guid>
      <dc:creator>emutuc</dc:creator>
      <dc:date>2024-06-12T23:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for Constant Line where numerator is a Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Constant-Line-where-numerator-is-a-Measure/m-p/3989709#M154902</link>
      <description>&lt;P&gt;Like I said, all I could promise is that my solution wouldn't "&lt;SPAN&gt;throw the (same) error", because I don't have insight into your data model.&amp;nbsp; And voila, it is now throwing a different error!&amp;nbsp; Success!&amp;nbsp; (sort of)&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_with_tears_of_joy:"&gt;😂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you re-create the problem with sample data in a .pbix file and upload it to google drive or catbox.moe or similar, then post the link, it is going to be much easier for me to help without having to ask a million questions back and forth&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;What I can tell you is that measures can be referred to without the Table name in which they are found.&amp;nbsp; Power BI enforces measures having unique names, so you can just refer to it as [COUNT COMBINED USE], you don't need the stuff before it.&amp;nbsp; I'm not promising this will fix your problem, just something to note.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 00:02:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Constant-Line-where-numerator-is-a-Measure/m-p/3989709#M154902</guid>
      <dc:creator>kpost</dc:creator>
      <dc:date>2024-06-13T00:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for Constant Line where numerator is a Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Constant-Line-where-numerator-is-a-Measure/m-p/3989808#M154905</link>
      <description>&lt;P&gt;Thanks.&amp;nbsp; when i create the expression&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Company Avg = CALCULATE(Average([COUNT COMBINED USE]), ALL('Table1'[USERS]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get an error because the [count combined use] part is not found&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 01:18:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Constant-Line-where-numerator-is-a-Measure/m-p/3989808#M154905</guid>
      <dc:creator>emutuc</dc:creator>
      <dc:date>2024-06-13T01:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for Constant Line where numerator is a Measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Constant-Line-where-numerator-is-a-Measure/m-p/3990313#M154906</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thanks for the solution&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="310881" data-lia-user-login="kpost" class="lia-mention lia-mention-user"&gt;kpost&lt;/a&gt;&amp;nbsp; provided, and i want to offer some more information for user to refer to.&lt;/P&gt;
&lt;P&gt;hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="758953" data-lia-user-login="emutuc" class="lia-mention lia-mention-user"&gt;emutuc&lt;/a&gt;&amp;nbsp;, you can try the following meausre.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Company Avg =
VAR a =
    SUMX ( ALLSELECTED ( 'Table1'[USERS] ), [COUNT COMBINED USE] )
VAR b =
    CALCULATE ( DISTINCTCOUNT ( 'Table1'[USERS] ), ALL ( 'Table1' ) )
RETURN
    DIVIDE ( a, b )

&lt;/LI-CODE&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;Best Regards!&lt;/P&gt;
&lt;P&gt;Yolo Zhu&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 06:33:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Constant-Line-where-numerator-is-a-Measure/m-p/3990313#M154906</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-13T06:33:48Z</dc:date>
    </item>
  </channel>
</rss>

