<?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: I need to diagonally sum columns based on the below concept in the image in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-to-diagonally-sum-columns-based-on-the-below-concept-in/m-p/4143146#M164668</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="802650" data-lia-user-login="THAMAR" class="lia-mention lia-mention-user"&gt;THAMAR&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is the solution file. &lt;U&gt;If it resolves your issue&lt;/U&gt;, kindly &lt;STRONG&gt;mark it as the solution&lt;/STRONG&gt; and &lt;STRONG&gt;leave a like&lt;/STRONG&gt;. Your appreciation would be greatly valued.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://sendanywhe.re/5LR5UL14" target="_blank" rel="noopener"&gt;Download Sample PowerBI (Link Expires on 12th Sept. 2024)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Udit&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Appreciate your Kudo &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":rocket:"&gt;🚀&lt;/span&gt; Let's Connect: &lt;A href="https://www.linkedin.com/in/quantumudit/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;LinkedIn&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://www.youtube.com/@quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;YouTube&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://medium.com/@quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;Medium&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://github.com/quantumudit/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;GitHub&lt;/STRONG&gt;&lt;/A&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":sparkles:"&gt;✨&lt;/span&gt; Visit My Linktree: &lt;A href="https://linktr.ee/quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;LinkTree&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Sep 2024 15:32:24 GMT</pubDate>
    <dc:creator>quantumudit</dc:creator>
    <dc:date>2024-09-10T15:32:24Z</dc:date>
    <item>
      <title>I need to diagonally sum columns based on the below concept in the image</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-to-diagonally-sum-columns-based-on-the-below-concept-in/m-p/4138060#M164377</link>
      <description>&lt;P class="lia-indent-padding-left-30px"&gt;Like this I have q1 to q12 columns which should work as per the below approach.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt; &lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&lt;img /&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-60px"&gt;I need a dax formula to create a calculated column that can sum cells diagonally based on this approach marked by similar colours.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 16:44:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-to-diagonally-sum-columns-based-on-the-below-concept-in/m-p/4138060#M164377</guid>
      <dc:creator>THAMAR</dc:creator>
      <dc:date>2024-09-06T16:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: I need to diagonally sum columns based on the below concept in the image</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-to-diagonally-sum-columns-based-on-the-below-concept-in/m-p/4138081#M164378</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="219243" data-lia-user-login="quantumudit" class="lia-mention lia-mention-user"&gt;quantumudit&lt;/a&gt;&amp;nbsp; reply&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 17:06:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-to-diagonally-sum-columns-based-on-the-below-concept-in/m-p/4138081#M164378</guid>
      <dc:creator>THAMAR</dc:creator>
      <dc:date>2024-09-06T17:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: I need to diagonally sum columns based on the below concept in the image</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-to-diagonally-sum-columns-based-on-the-below-concept-in/m-p/4138260#M164385</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="802650" data-lia-user-login="THAMAR" class="lia-mention lia-mention-user"&gt;THAMAR&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope I've understood your requirements correctly. You've provided two types of screenshots: in the first, you have columns "m1", "m2", ..., and "m6", and above them, you've mentioned a "q1 to q12" column, which is a bit confusing.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Then, you shared a screenshot with data for two quarters, colour-coded to demonstrate the desired summation method, which is intuitive and easy to understand. The summation value in the "Output Required" column also appears correct. However, the summation result in the subsequent screenshot seems incorrect. Considering the type of summation you require, I believe the value in cell H5 should be 760, not 460. Similarly, the values in cells H7, H8, and H9 should be 460, 780, and 1160, respectively.&lt;BR /&gt;&lt;BR /&gt;Here is the screenshot with the correct sum:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Considering your last screenshot (with the corrected sum) as the problem statement, the following DAX formula can be used to create a calculated column to achieve the desired outcome:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Diagonal Sum = 
VAR _currentKey = DiagonalTable[Key]
VAR _currentFiscalMonthIdx = DiagonalTable[FiscalMonthIndex]

// Creating Single Cell Tables
VAR _at2Tbl = SELECTCOLUMNS(FILTER(DiagonalTable, DiagonalTable[FiscalMonthIndex]=_currentFiscalMonthIdx-1 &amp;amp;&amp;amp; DiagonalTable[Key]=_currentKey), "q2", DiagonalTable[Q2_Sales])
VAR _at3Tbl = SELECTCOLUMNS(FILTER(DiagonalTable, DiagonalTable[FiscalMonthIndex]=_currentFiscalMonthIdx-2 &amp;amp;&amp;amp; DiagonalTable[Key]=_currentKey), "q3", DiagonalTable[Q3_Sales])
VAR _at4Tbl = SELECTCOLUMNS(FILTER(DiagonalTable, DiagonalTable[FiscalMonthIndex]=_currentFiscalMonthIdx-3 &amp;amp;&amp;amp; DiagonalTable[Key]=_currentKey), "q4", DiagonalTable[Q4_Sales])

RETURN
SWITCH(
    TRUE(),
    DiagonalTable[FiscalMonthIndex] = 1, DiagonalTable[Q1_Sales],
    DiagonalTable[FiscalMonthIndex] = 2, DiagonalTable[Q1_Sales] + _at2Tbl,
    DiagonalTable[FiscalMonthIndex] = 3, DiagonalTable[Q1_Sales] + _at2Tbl + _at3Tbl,
    DiagonalTable[FiscalMonthIndex] = 4, DiagonalTable[Q1_Sales] + _at2Tbl + _at3Tbl + _at4Tbl,
    BLANK()
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the Power BI Desktop screenshot showing the comparison between the "Output Required" and "Desired Sum" columns:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This DAX pattern can be adapted for your specific use case, whether it's for two quarters or six months. Please let me know if you encounter any further challenges related to this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Udit&lt;BR /&gt;&lt;BR /&gt;If this post &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accepting it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Appreciate your Kudo &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":rocket:"&gt;🚀&lt;/span&gt;Let's Connect: &lt;A href="https://www.linkedin.com/in/quantumudit/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;LinkedIn&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://www.youtube.com/@quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;YouTube&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://medium.com/@quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;Medium&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://github.com/quantumudit/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;GitHub&lt;/STRONG&gt;&lt;/A&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":sparkles:"&gt;✨&lt;/span&gt;Visit My Linktree: &lt;A href="https://linktr.ee/quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;LinkTree&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 19:12:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-to-diagonally-sum-columns-based-on-the-below-concept-in/m-p/4138260#M164385</guid>
      <dc:creator>quantumudit</dc:creator>
      <dc:date>2024-09-06T19:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: I need to diagonally sum columns based on the below concept in the image</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-to-diagonally-sum-columns-based-on-the-below-concept-in/m-p/4140760#M164545</link>
      <description>&lt;P&gt;Pls share the file..&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 13:45:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-to-diagonally-sum-columns-based-on-the-below-concept-in/m-p/4140760#M164545</guid>
      <dc:creator>THAMAR</dc:creator>
      <dc:date>2024-09-09T13:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: I need to diagonally sum columns based on the below concept in the image</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-to-diagonally-sum-columns-based-on-the-below-concept-in/m-p/4143146#M164668</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="802650" data-lia-user-login="THAMAR" class="lia-mention lia-mention-user"&gt;THAMAR&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is the solution file. &lt;U&gt;If it resolves your issue&lt;/U&gt;, kindly &lt;STRONG&gt;mark it as the solution&lt;/STRONG&gt; and &lt;STRONG&gt;leave a like&lt;/STRONG&gt;. Your appreciation would be greatly valued.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://sendanywhe.re/5LR5UL14" target="_blank" rel="noopener"&gt;Download Sample PowerBI (Link Expires on 12th Sept. 2024)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Udit&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Appreciate your Kudo &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":rocket:"&gt;🚀&lt;/span&gt; Let's Connect: &lt;A href="https://www.linkedin.com/in/quantumudit/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;LinkedIn&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://www.youtube.com/@quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;YouTube&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://medium.com/@quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;Medium&lt;/STRONG&gt;&lt;/A&gt; || &lt;A href="https://github.com/quantumudit/" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;GitHub&lt;/STRONG&gt;&lt;/A&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":sparkles:"&gt;✨&lt;/span&gt; Visit My Linktree: &lt;A href="https://linktr.ee/quantumudit" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;LinkTree&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 15:32:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-to-diagonally-sum-columns-based-on-the-below-concept-in/m-p/4143146#M164668</guid>
      <dc:creator>quantumudit</dc:creator>
      <dc:date>2024-09-10T15:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: I need to diagonally sum columns based on the below concept in the image</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-to-diagonally-sum-columns-based-on-the-below-concept-in/m-p/4148681#M164851</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="802650" data-lia-user-login="THAMAR" class="lia-mention lia-mention-user"&gt;THAMAR&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any progress on this issue?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you find any answer&amp;nbsp;is&amp;nbsp;helpful to you, please remember to accept&amp;nbsp;it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It will help others who meet the similar question in this forum.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your understanding.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2024 05:09:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-need-to-diagonally-sum-columns-based-on-the-below-concept-in/m-p/4148681#M164851</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-09-13T05:09:46Z</dc:date>
    </item>
  </channel>
</rss>

