<?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: need to repeat same measure value to use as denominator, % of sales calculation based on measure val in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-to-repeat-same-measure-value-to-use-as-denominator-of-sales/m-p/2814406#M89190</link>
    <description>&lt;P&gt;Thank you all for your assistance,&amp;nbsp; your replies alone helped me understand more about filters and calculations. Thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 03 Oct 2022 15:33:24 GMT</pubDate>
    <dc:creator>crisaldana</dc:creator>
    <dc:date>2022-10-03T15:33:24Z</dc:date>
    <item>
      <title>need to repeat same measure value to use as denominator, % of sales calculation based on measure val</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-to-repeat-same-measure-value-to-use-as-denominator-of-sales/m-p/2797792#M87961</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Total Revenue line = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;([Actuals CM],&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(Layout,Layout[Level 2]=&lt;/SPAN&gt;&lt;SPAN&gt;"TOTAL REVENUE"&lt;/SPAN&gt;&lt;SPAN&gt;)) -881495.70&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Actuals CM = COALESCE([actuals month],[item SUBTOTAL])&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;new measure = &lt;/SPAN&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;([Actuals CM],[Total Revenue line])&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;Hello All,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;reaching to all my power BI senseis&amp;nbsp; regarding&amp;nbsp; an issue that i am having with a measure.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;I am looking to divide all the actuals for current month (Actuals CM) by the total revenue line for the month (total revenue line) in order to get a % of revenue measure for all items.&amp;nbsp;&lt;BR /&gt;I tried the to create a measure (new measure) and it works but only for 3 rows. The revenue, TOTAL Revenue, and Total lines. I am guessing because the value of -881,945.70 is not repeating down to all rows.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;how can I have all rows repeat the total revenue line figure or achieve the calculation&amp;nbsp; for all rows to divide by this value?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you for your assistance&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 26 Sep 2022 20:15:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-to-repeat-same-measure-value-to-use-as-denominator-of-sales/m-p/2797792#M87961</guid>
      <dc:creator>crisaldana</dc:creator>
      <dc:date>2022-09-26T20:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: need to repeat same measure value to use as denominator, % of sales calculation based on measure val</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-to-repeat-same-measure-value-to-use-as-denominator-of-sales/m-p/2798202#M87982</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="447672" data-lia-user-login="crisaldana" class="lia-mention lia-mention-user"&gt;crisaldana&lt;/a&gt; , BAsed on what I got try like &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CALCULATE([Actuals CM],Layout[Level 2]="TOTAL REVENUE")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CALCULATE([Actuals CM],FILTER(all(Layout[Level 2]),Layout[Level 2]="TOTAL REVENUE"))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;CALCULATE([Actuals CM],FILTER(allselected(Layout[Level 2]),Layout[Level 2]="TOTAL REVENUE"))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;CALCULATE([Actuals CM],FILTER(allselected(Layout),Layout[Level 2]="TOTAL REVENUE"))&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 02:06:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-to-repeat-same-measure-value-to-use-as-denominator-of-sales/m-p/2798202#M87982</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-09-27T02:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: need to repeat same measure value to use as denominator, % of sales calculation based on measure val</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-to-repeat-same-measure-value-to-use-as-denominator-of-sales/m-p/2798306#M87991</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="447672" data-lia-user-login="crisaldana" class="lia-mention lia-mention-user"&gt;crisaldana&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your original formula may only show data in [level2]= "TOTAL REVENUE" or the group "TOTAL REVENUE" contained in [level1], instead of returning -881.50k per row.&lt;/P&gt;
&lt;P&gt;like this:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;You can try the following formula:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Total Revenue line = CALCULATE([Actuals CM],FILTER(ALL(Layout),Layout[Level 2]="TOTAL REVENUE"))&lt;/LI-CODE&gt;
&lt;P&gt;OR&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Total Revenue line = CALCULATE([Actuals CM],FILTER(ALLSELECTED(Layout),Layout[Level2]="TOTAL REVENUE"))&lt;/LI-CODE&gt;
&lt;P&gt;Refer to:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/all-function-dax" target="_blank"&gt;ALL function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/allselected-function-dax" target="_blank"&gt;ALLSELECTED function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Sep 2022 02:40:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-to-repeat-same-measure-value-to-use-as-denominator-of-sales/m-p/2798306#M87991</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-27T02:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: need to repeat same measure value to use as denominator, % of sales calculation based on measure val</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-to-repeat-same-measure-value-to-use-as-denominator-of-sales/m-p/2814406#M89190</link>
      <description>&lt;P&gt;Thank you all for your assistance,&amp;nbsp; your replies alone helped me understand more about filters and calculations. Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 15:33:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/need-to-repeat-same-measure-value-to-use-as-denominator-of-sales/m-p/2814406#M89190</guid>
      <dc:creator>crisaldana</dc:creator>
      <dc:date>2022-10-03T15:33:24Z</dc:date>
    </item>
  </channel>
</rss>

