<?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: Calculate Sum of a measure(not column) for all IDs in a category in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2741787#M84294</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So i got blank result if either rolling runhours or rolling failures is 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MTBF(M) = &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Runhour(Rolling)]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt; || &lt;/SPAN&gt;&lt;SPAN&gt;[Rolling failures]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;blank&lt;/SPAN&gt;&lt;SPAN&gt;(), &lt;/SPAN&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Runhour(Rolling)]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;[Rolling failures&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Now how should i calculate average of this MTBF(M)=sum of MTBF(M)/ non blank count of MTBF(M) so that at site level average is displayed but at assets level MTBF(M) individual value is displayed&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 01 Sep 2022 22:24:31 GMT</pubDate>
    <dc:creator>WTAS80486</dc:creator>
    <dc:date>2022-09-01T22:24:31Z</dc:date>
    <item>
      <title>Calculate Sum of a measure(not column) for all IDs in a category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2710732#M82322</link>
      <description>&lt;P&gt;I need to calculate average reliability for each site which will be sum of (Reliability Old M)for all assets in a site(NDA and 3 other sites) divided by count of assets in a site.&amp;nbsp;(Reliability Old M) is a measure and not column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;below measure is not working&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reliability= DIVIDE(SUMX('MeterReading','MeterReading'[Reliability Old M]),'MeterReading'[COUNT(Assets by site M)])&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>Sun, 04 Sep 2022 17:49:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2710732#M82322</guid>
      <dc:creator>WTAS80486</dc:creator>
      <dc:date>2022-09-04T17:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Sum of a measure(not column) for all IDs in a category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2710751#M82324</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="421077" data-lia-user-login="WTAS80486" class="lia-mention lia-mention-user"&gt;WTAS80486&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it depends where do you want to view this measure. Uou can use the following if you are slicing by Site.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Reliability =
AVERAGEX ( VALUES ( 'MeterReading'[Site] ), [Reliability Old M] )&lt;/LI-CODE&gt;
&lt;P&gt;you can also edit the original measure in order to see the old value at the asset level and the average at the site level in the same matrix&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 19:24:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2710751#M82324</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-18T19:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Sum of a measure(not column) for all IDs in a category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2710831#M82331</link>
      <description>&lt;P&gt;This is not working&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It needs to be here for site, so summ of all reliability Old M / No of assets in this site&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Sep 2022 17:49:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2710831#M82331</guid>
      <dc:creator>WTAS80486</dc:creator>
      <dc:date>2022-09-04T17:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Sum of a measure(not column) for all IDs in a category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2710852#M82333</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="421077" data-lia-user-login="WTAS80486" class="lia-mention lia-mention-user"&gt;WTAS80486&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Reliability =
AVERAGEX (
    SUMMARIZE ( 'MeterReading', 'MeterReading'[Site], 'MeterReading'[Asset] ),
    [Reliability Old M]
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 18 Aug 2022 20:23:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2710852#M82333</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-18T20:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Sum of a measure(not column) for all IDs in a category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2710854#M82334</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 20:27:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2710854#M82334</guid>
      <dc:creator>WTAS80486</dc:creator>
      <dc:date>2022-08-18T20:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Sum of a measure(not column) for all IDs in a category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2717862#M82765</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the below expression&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Reliability =&lt;BR /&gt;AVERAGEX (&lt;BR /&gt;SUMMARIZE ( 'MeterReading', 'MeterReading'[Site], 'MeterReading'[Asset] ),&lt;BR /&gt;[Reliability Old M]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is calculating average at the site level&amp;nbsp; but considering only those assets which have reliability value populated at asset level, whereas i wanted to include all assets in count(even the ones with blank reliability values)&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 16:26:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2717862#M82765</guid>
      <dc:creator>WTAS80486</dc:creator>
      <dc:date>2022-08-22T16:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Sum of a measure(not column) for all IDs in a category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2717932#M82770</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="421077" data-lia-user-login="WTAS80486" class="lia-mention lia-mention-user"&gt;WTAS80486&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Reliability =
AVERAGEX (
    CROSSJOIN ( VALUES ( 'MeterReading'[Site] ), VALUES ( 'MeterReading'[Asset] ) ),
    [Reliability Old M]
)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 22 Aug 2022 17:16:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2717932#M82770</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-22T17:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Sum of a measure(not column) for all IDs in a category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2717968#M82772</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gives the same thing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is not taking all assets in account( excluding the ones with blank [Reliability Old M] value&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 17:31:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2717968#M82772</guid>
      <dc:creator>WTAS80486</dc:creator>
      <dc:date>2022-08-22T17:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Sum of a measure(not column) for all IDs in a category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2718024#M82773</link>
      <description>&lt;P&gt;Ok let's try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Reliability =
AVERAGEX (
    CROSSJOIN ( VALUES ( 'MeterReading'[Site] ), VALUES ( 'MeterReading'[Asset] ) ),
    COALESCE ( [Reliability Old M], 0 )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 18:11:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2718024#M82773</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-22T18:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Sum of a measure(not column) for all IDs in a category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2718037#M82774</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp; Thanks so much. It is working.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 18:26:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2718037#M82774</guid>
      <dc:creator>WTAS80486</dc:creator>
      <dc:date>2022-08-22T18:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Sum of a measure(not column) for all IDs in a category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2723596#M83165</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;I am calculating&amp;nbsp;&lt;SPAN&gt;average Mean at the site level&amp;nbsp; for all assets under that site&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MTBF = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;AVERAGEX&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CROSSJOIN&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'MeterReading'&lt;/SPAN&gt;&lt;SPAN&gt;[Site]&lt;/SPAN&gt;&lt;SPAN&gt; ), &lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'MeterReading'&lt;/SPAN&gt;&lt;SPAN&gt;[Asset]&lt;/SPAN&gt;&lt;SPAN&gt; ) ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;COALESCE&lt;/SPAN&gt;&lt;SPAN&gt; (Total&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Where Total= Hours/F for each asset under that site&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Now i want to write an expression for calculation average of all MTBF for 4 sites to create a line average on chart which already has 4 bar graphs for 4 MTBF&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;This dashed line is average line in colum chart&amp;nbsp;&lt;/P&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But i wanted to used line and column chart and use the average expression in Line y-axis&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help!&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 Aug 2022 14:17:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2723596#M83165</guid>
      <dc:creator>WTAS80486</dc:creator>
      <dc:date>2022-08-24T14:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Sum of a measure(not column) for all IDs in a category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2723654#M83167</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="421077" data-lia-user-login="WTAS80486" class="lia-mention lia-mention-user"&gt;WTAS80486&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;Average =&lt;BR /&gt;AVERAGEX ( ALLSELECTED ( 'MeterReading'[Site] ), [MTBF] )&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 14:34:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2723654#M83167</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-24T14:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Sum of a measure(not column) for all IDs in a category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2724252#M83220</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp; Thanks much!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Aug 2022 19:53:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2724252#M83220</guid>
      <dc:creator>WTAS80486</dc:creator>
      <dc:date>2022-08-24T19:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Sum of a measure(not column) for all IDs in a category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2741107#M84245</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the expression&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;AVERAGEX&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CROSSJOIN&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt; ( 'Asset'[Site] ), &lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt; ( 'Asset'[Asset Number] ) ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;COALESCE&lt;/SPAN&gt;&lt;SPAN&gt; ([MTBF(M)], &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This calculates value at asset level as well as average at site level, but at site level i wanted to take total of MTBF(M) and divide by total no of MTBF(M (including 0) and not divide by&amp;nbsp; total asssets&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&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;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 04 Sep 2022 17:53:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2741107#M84245</guid>
      <dc:creator>WTAS80486</dc:creator>
      <dc:date>2022-09-04T17:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Sum of a measure(not column) for all IDs in a category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2741163#M84256</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="421077" data-lia-user-login="WTAS80486" class="lia-mention lia-mention-user"&gt;WTAS80486&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please clarify further perhaps with an example.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 15:34:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2741163#M84256</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-09-01T15:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Sum of a measure(not column) for all IDs in a category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2741332#M84269</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ok let me reframe&lt;/P&gt;&lt;P&gt;I want to calculate MTBF at asset level= Rolling runhours/rolling failures&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Condition is that if either of rolling runhours or rolling failures is 0 then MTBF should be blank, which is not happening now&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;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then at site level (space in red) i want to also calculate MTBF average=total MTBF by count of non blanks MTBF and not by count of asset in that site&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 16:46:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2741332#M84269</guid>
      <dc:creator>WTAS80486</dc:creator>
      <dc:date>2022-09-01T16:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Sum of a measure(not column) for all IDs in a category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2741439#M84275</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="421077" data-lia-user-login="WTAS80486" class="lia-mention lia-mention-user"&gt;WTAS80486&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is difficult to answer your question without having my eyes on the data and the data model. It would be really helpful if you can share a sample file that contains a reasonable amount of dummy data that simulates the actual data.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2022 17:47:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2741439#M84275</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-09-01T17:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Sum of a measure(not column) for all IDs in a category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2741745#M84291</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So this expression&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MTBF(M) = &lt;/SPAN&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;([Runhour(Rolling)],[Rolling Failures])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Calculates MTBF(M) column&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;But as you can see MTBF(M) is 0.00 when rolling runhours is 0.00&lt;/P&gt;&lt;P&gt;&amp;nbsp;and blank when failures 0&lt;/P&gt;&lt;P&gt;Desired result is --&amp;gt;&amp;nbsp;&lt;SPAN&gt;if either of rolling runhours or rolling failures is 0 then MTBF(M) should be blank&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also after this calculation which is for each asset under site, an average at site level should be calculated&amp;nbsp; for space in red which will be = sum of MTBF(M)/COUNT of Non blanks MTBF(M) under that site (Ex MOU)&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;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now another measure&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MTBF(M) Avg per site = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;AVERAGEX&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CROSSJOIN&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'MeterReading'&lt;/SPAN&gt;&lt;SPAN&gt;[Site]&lt;/SPAN&gt;&lt;SPAN&gt; ), &lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'MeterReading'&lt;/SPAN&gt;&lt;SPAN&gt;[Asset]&lt;/SPAN&gt;&lt;SPAN&gt; ) ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;[MTBF(M)]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;does calculate MTBF at asset and average at site level but considers assets and i want to consider non blank MTBF (M) values not assets&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 01 Sep 2022 21:46:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2741745#M84291</guid>
      <dc:creator>WTAS80486</dc:creator>
      <dc:date>2022-09-01T21:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Sum of a measure(not column) for all IDs in a category</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2741787#M84294</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So i got blank result if either rolling runhours or rolling failures is 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MTBF(M) = &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Runhour(Rolling)]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt; || &lt;/SPAN&gt;&lt;SPAN&gt;[Rolling failures]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;blank&lt;/SPAN&gt;&lt;SPAN&gt;(), &lt;/SPAN&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[Runhour(Rolling)]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;[Rolling failures&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Now how should i calculate average of this MTBF(M)=sum of MTBF(M)/ non blank count of MTBF(M) so that at site level average is displayed but at assets level MTBF(M) individual value is displayed&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 01 Sep 2022 22:24:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Sum-of-a-measure-not-column-for-all-IDs-in-a-category/m-p/2741787#M84294</guid>
      <dc:creator>WTAS80486</dc:creator>
      <dc:date>2022-09-01T22:24:31Z</dc:date>
    </item>
  </channel>
</rss>

