<?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: Calculating average value for a day of a month comparing to other value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-value-for-a-day-of-a-month-comparing-to/m-p/1341565#M23979</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="231641" data-lia-user-login="PbiCeo" class="lia-mention lia-mention-user"&gt;PbiCeo&lt;/a&gt;&amp;nbsp;-&amp;nbsp;This looks like a measure aggregation problem. See my blog article about that here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Design-Pattern-Groups-and-Super-Groups/ba-p/138149" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Design-Pattern-Groups-and-Super-Groups/ba-p/138149&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The pattern is: &lt;BR /&gt;MinScoreMeasure = MINX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])&lt;BR /&gt;MaxScoreMeasure = MAXX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])&lt;BR /&gt;AvgScoreMeasure = AVERAGEX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])&lt;BR /&gt;etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not really enough information to go on, 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;</description>
    <pubDate>Wed, 02 Sep 2020 14:20:25 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2020-09-02T14:20:25Z</dc:date>
    <item>
      <title>Calculating average value for a day of a month comparing to other value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-value-for-a-day-of-a-month-comparing-to/m-p/1341535#M23973</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to calcutalte&amp;nbsp;average value for a day of a month comparing to other value with Measure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure1 =&lt;BR /&gt;VAR tm = CALCULATE(SUM('table'[data1]), FILTER(ALL('calendar'), 'calendar'[date] &amp;lt;= 'calendar'[date]))&lt;BR /&gt;return&lt;BR /&gt;DIVIDE('tm', 'table'[NumberofDays], 0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure2 =&lt;BR /&gt;VAR tm = CALCULATE(SUM('table'[data2]), FILTER(ALL('calendar'), 'calendar'[date] &amp;lt;= 'calendar'[date]))&lt;BR /&gt;return&lt;BR /&gt;DIVIDE('tm', 'table'[NumberofDays], 0)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;MeasureResult = DIVIDE('table'[Mesaure1], 'table'[Measure2], 0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But MeasureResult returns the all same value on Table visual.&lt;BR /&gt;&lt;BR /&gt;How to get value row by row?&lt;BR /&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Vladi&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 14:08:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-value-for-a-day-of-a-month-comparing-to/m-p/1341535#M23973</guid>
      <dc:creator>PbiCeo</dc:creator>
      <dc:date>2020-09-02T14:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating average value for a day of a month comparing to other value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-value-for-a-day-of-a-month-comparing-to/m-p/1341565#M23979</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="231641" data-lia-user-login="PbiCeo" class="lia-mention lia-mention-user"&gt;PbiCeo&lt;/a&gt;&amp;nbsp;-&amp;nbsp;This looks like a measure aggregation problem. See my blog article about that here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Design-Pattern-Groups-and-Super-Groups/ba-p/138149" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Design-Pattern-Groups-and-Super-Groups/ba-p/138149&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The pattern is: &lt;BR /&gt;MinScoreMeasure = MINX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])&lt;BR /&gt;MaxScoreMeasure = MAXX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])&lt;BR /&gt;AvgScoreMeasure = AVERAGEX ( SUMMARIZE ( Table, Table[Group] , "Measure",[YourMeasure] ), [Measure])&lt;BR /&gt;etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not really enough information to go on, 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;</description>
      <pubDate>Wed, 02 Sep 2020 14:20:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-value-for-a-day-of-a-month-comparing-to/m-p/1341565#M23979</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-09-02T14:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating average value for a day of a month comparing to other value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-value-for-a-day-of-a-month-comparing-to/m-p/1341671#M23988</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Is there any way to do with minimum change from my code?&lt;BR /&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 14:53:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-value-for-a-day-of-a-month-comparing-to/m-p/1341671#M23988</guid>
      <dc:creator>PbiCeo</dc:creator>
      <dc:date>2020-09-02T14:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating average value for a day of a month comparing to other value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-value-for-a-day-of-a-month-comparing-to/m-p/1341677#M23989</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="231641" data-lia-user-login="PbiCeo" class="lia-mention lia-mention-user"&gt;PbiCeo&lt;/a&gt; , your NumberofDays&amp;nbsp; measure should be like &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NumberofDays =CALCULATE(distinctcount('table'[Date]), FILTER(ALL('calendar'), 'calendar'[date] &amp;lt;= 'calendar'[date]))&lt;BR /&gt;or&lt;BR /&gt;NumberofDays =CALCULATE(distinctcount('calendar'[date]), FILTER(ALL('calendar'), 'calendar'[date] &amp;lt;= 'calendar'[date]))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;You can this measure like&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;MeasureResult =&lt;/P&gt;
&lt;P&gt;CALCULATE(DIVIDE(SUM('table'[data1]), SUM('table'[data2]), 0), FILTER(ALL('calendar'), 'calendar'[date] &amp;lt;= 'calendar'[date]))&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 14:55:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-value-for-a-day-of-a-month-comparing-to/m-p/1341677#M23989</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-09-02T14:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating average value for a day of a month comparing to other value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-value-for-a-day-of-a-month-comparing-to/m-p/1346410#M24162</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Although I can get correct value from these 2 Measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure1 =&lt;BR /&gt;VAR tm = CALCULATE(SUM('table'[data1]), FILTER(ALL('calendar'), 'calendar'[date] &amp;lt;= 'calendar'[date]))&lt;BR /&gt;return&lt;BR /&gt;DIVIDE('tm', 'table'[NumberofDays], 0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure2 =&lt;BR /&gt;VAR tm = CALCULATE(SUM('table'[data2]), FILTER(ALL('calendar'), 'calendar'[date] &amp;lt;= 'calendar'[date]))&lt;BR /&gt;return&lt;BR /&gt;DIVIDE('tm', 'table'[NumberofDays], 0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I try to compare them, I get all same value on Table visual.&lt;BR /&gt;MeasureResult = DIVIDE('table'[Mesaure1], 'table'[Measure2], 0)&lt;BR /&gt;&lt;BR /&gt;Almost there, please give me advice?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 05:59:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-value-for-a-day-of-a-month-comparing-to/m-p/1346410#M24162</guid>
      <dc:creator>PbiCeo</dc:creator>
      <dc:date>2020-09-04T05:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating average value for a day of a month comparing to other value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-value-for-a-day-of-a-month-comparing-to/m-p/1349399#M24254</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="231641" data-lia-user-login="PbiCeo" class="lia-mention lia-mention-user"&gt;PbiCeo&lt;/a&gt;&amp;nbsp;- We should probably back-up. Post sample data and expected result. It has proven to be the absolute quickest way of resolving problems for all of recorded time on these forums.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not really enough information to go on, 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;</description>
      <pubDate>Sun, 06 Sep 2020 05:02:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-average-value-for-a-day-of-a-month-comparing-to/m-p/1349399#M24254</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-09-06T05:02:23Z</dc:date>
    </item>
  </channel>
</rss>

