<?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: Damage percentage over Yearly total of sales in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Damage-percentage-over-Yearly-total-of-sales/m-p/2574493#M73652</link>
    <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="365673" data-lia-user-login="GiTchitchinadze" class="lia-mention lia-mention-user"&gt;GiTchitchinadze&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I created some data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
var _selectyear=SELECTEDVALUE('Table'[Date].[Year])
var _selectmonth=SELECTEDVALUE('Table'[Date].[Month])
var _claims=CALCULATE(SUM('Table'[claims]),FILTER(ALL('Table'),'Table'[Date].[Year]=_selectyear&amp;amp;&amp;amp;'Table'[Date].[Month]=_selectmonth))
var _profit=CALCULATE(SUM('Table'[profit]),FILTER(ALL('Table'),'Table'[Date].[Year]=_selectyear))
return
DIVIDE(_claims,_profit)&lt;/LI-CODE&gt;
&lt;P&gt;2. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&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>Mon, 13 Jun 2022 08:36:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-06-13T08:36:03Z</dc:date>
    <item>
      <title>Damage percentage over Yearly total of sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Damage-percentage-over-Yearly-total-of-sales/m-p/2565989#M73117</link>
      <description>&lt;P&gt;I work for insurance company and we have agroinsurance as part of portfolio.&amp;nbsp; My task is to identify damage percentage of claims in months and subcategories like villages etc. I made a measure (claims/profit) and it does the job in yearly overview but when I choose august for example, I want august claims to be divided by all years profit, but it cuts profit to august aswell and the result I'm getting is august claims divided by august profit and thats not what I want. What I want is that whatever month I choose it has to be divided by that years total profit.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2022 08:35:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Damage-percentage-over-Yearly-total-of-sales/m-p/2565989#M73117</guid>
      <dc:creator>GiTchitchinadze</dc:creator>
      <dc:date>2022-06-08T08:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Damage percentage over Yearly total of sales</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Damage-percentage-over-Yearly-total-of-sales/m-p/2574493#M73652</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="365673" data-lia-user-login="GiTchitchinadze" class="lia-mention lia-mention-user"&gt;GiTchitchinadze&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I created some data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
var _selectyear=SELECTEDVALUE('Table'[Date].[Year])
var _selectmonth=SELECTEDVALUE('Table'[Date].[Month])
var _claims=CALCULATE(SUM('Table'[claims]),FILTER(ALL('Table'),'Table'[Date].[Year]=_selectyear&amp;amp;&amp;amp;'Table'[Date].[Month]=_selectmonth))
var _profit=CALCULATE(SUM('Table'[profit]),FILTER(ALL('Table'),'Table'[Date].[Year]=_selectyear))
return
DIVIDE(_claims,_profit)&lt;/LI-CODE&gt;
&lt;P&gt;2. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&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>Mon, 13 Jun 2022 08:36:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Damage-percentage-over-Yearly-total-of-sales/m-p/2574493#M73652</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-13T08:36:03Z</dc:date>
    </item>
  </channel>
</rss>

