<?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: Sum two lines under conditions in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-two-lines-under-conditions/m-p/3992033#M154925</link>
    <description>&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;&lt;BR /&gt;Do not include sensitive information or anything not related to the issue or question. &lt;BR /&gt;&lt;BR /&gt;If you are unsure how to upload data please refer to &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jun 2024 01:07:38 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-06-14T01:07:38Z</dc:date>
    <item>
      <title>Sum two lines under conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-two-lines-under-conditions/m-p/3990738#M154800</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I am stuck on a problem,&lt;/P&gt;&lt;P&gt;I have different tables : DIM_Energy,DIM_Country, FACT_Energy_Mixed&lt;BR /&gt;In my table FACT_EnergyMixed, I have the following colum :&lt;/P&gt;&lt;P&gt;CountryCode : Contain the code of the country that refer to a country in DIM_Country&lt;/P&gt;&lt;P&gt;EnergyCode :&amp;nbsp;Contain the code of the energy (gaz, electricity etc ...) that refer to a country in DIM_Energy. There is for each energy an indicator 'Y'/'N' to say if it's a clean or unclean energy&lt;/P&gt;&lt;P&gt;ValueEnergtMix: The value produce for an energy and a country for one year&lt;/P&gt;&lt;P&gt;Year: The years from 2000 to 2022&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to find the pourcentage of evolution between 2000 and 2022 for the clean and for the unclean energy.&lt;/P&gt;&lt;P&gt;For now I tried two differents methods :&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;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;And I get that :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The thing is I would like that after the calcul of the pourcentage, it makes the sum of the value.&lt;BR /&gt;Fx, for France, it should do -29.70 + (-29,01) + 2857,23 =&amp;nbsp;2,798.52&lt;BR /&gt;&lt;BR /&gt;I don't really understand how it does the calcul, but it's not what I want.&lt;BR /&gt;&lt;BR /&gt;I tried also on the recommandations to chatgpt and it gave me that :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;with Valeur2020 and Valeur2022 equal :&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;After that, it told me to filter on the country and the energy but I obtain the same problem.&lt;BR /&gt;Could anyone could help me ?&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 09:30:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-two-lines-under-conditions/m-p/3990738#M154800</guid>
      <dc:creator>LudwigGdn</dc:creator>
      <dc:date>2024-06-13T09:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sum two lines under conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-two-lines-under-conditions/m-p/3992033#M154925</link>
      <description>&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;&lt;BR /&gt;Do not include sensitive information or anything not related to the issue or question. &lt;BR /&gt;&lt;BR /&gt;If you are unsure how to upload data please refer to &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 01:07:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-two-lines-under-conditions/m-p/3992033#M154925</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-06-14T01:07:38Z</dc:date>
    </item>
  </channel>
</rss>

