<?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 Balance sheet using matrix in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Balance-sheet-using-matrix/m-p/4269034#M11723</link>
    <description>&lt;P&gt;i am preparing balance sheet using matrix, all rows comes from data table. i stuck when i want to add profit for the year in&amp;nbsp;UNAPPROPRIATED PROFIT (Which is calculated with the help of dax.) how can i add this as row and include in balance sheet&lt;/P&gt;</description>
    <pubDate>Mon, 04 Nov 2024 11:18:26 GMT</pubDate>
    <dc:creator>atifkazmi1980</dc:creator>
    <dc:date>2024-11-04T11:18:26Z</dc:date>
    <item>
      <title>Balance sheet using matrix</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Balance-sheet-using-matrix/m-p/4269034#M11723</link>
      <description>&lt;P&gt;i am preparing balance sheet using matrix, all rows comes from data table. i stuck when i want to add profit for the year in&amp;nbsp;UNAPPROPRIATED PROFIT (Which is calculated with the help of dax.) how can i add this as row and include in balance sheet&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 11:18:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Balance-sheet-using-matrix/m-p/4269034#M11723</guid>
      <dc:creator>atifkazmi1980</dc:creator>
      <dc:date>2024-11-04T11:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Balance sheet using matrix</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Balance-sheet-using-matrix/m-p/4269112#M11724</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/836132"&gt;@atifkazmi1980&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;İf you are using matrix visualization in Power BI. There are rows, columns and Values in Format Pane.&lt;/P&gt;
&lt;P&gt;And your measure "&lt;SPAN&gt;UNAPPROPRIATED PROFIT" can be used only in values. Because measure can be only used on Values. But if you created Calculated column you can use on rows and column. However, it will be shown without aggregated.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind Regards,&lt;BR /&gt;Gökberk Uzuntaş&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":pushpin:"&gt;📌&lt;/span&gt; If this post helps, then please consider &lt;STRONG&gt;Accepting it as a solution&lt;/STRONG&gt; and giving &lt;STRONG&gt;Kudos&lt;/STRONG&gt; — it helps other members find answers faster!&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":link:"&gt;🔗&lt;/span&gt; &lt;STRONG&gt;Stay Connected:&lt;/STRONG&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":blue_book:"&gt;📘&lt;/span&gt; &lt;A href="https://medium.com/@uzuntasgokberk" target="_blank" rel="noopener"&gt;Medium&lt;/A&gt; |&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":television:"&gt;📺&lt;/span&gt; &lt;A href="https://youtube.com/@uzuntasgokberk" target="_blank" rel="noopener"&gt;YouTube&lt;/A&gt; |&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":briefcase:"&gt;💼&lt;/span&gt; &lt;A href="https://linkedin.com/in/uzuntasgokberk" target="_blank" rel="noopener"&gt;LinkedIn&lt;/A&gt; |&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":camera:"&gt;📷&lt;/span&gt; &lt;A href="https://instagram.com/developeruzuntasgokberk" target="_blank" rel="noopener"&gt;Instagram&lt;/A&gt; |&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":bird:"&gt;🐦&lt;/span&gt; &lt;A href="https://x.com/uzuntasgokberk" target="_blank" rel="noopener"&gt;X&lt;/A&gt; |&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":alien:"&gt;👽&lt;/span&gt; &lt;A href="https://reddit.com/user/uzuntasgokberk" target="_blank" rel="noopener"&gt;Reddit&lt;/A&gt; |&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":globe_with_meridians:"&gt;🌐&lt;/span&gt; &lt;A href="https://uzuntasgokberk.com" target="_blank" rel="noopener"&gt;Website&lt;/A&gt; |&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":musical_note:"&gt;🎵&lt;/span&gt; &lt;A href="https://tiktok.com/@uzuntasgokberk" target="_blank" rel="noopener"&gt;TikTok&lt;/A&gt; |&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jul 2025 14:04:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Balance-sheet-using-matrix/m-p/4269112#M11724</guid>
      <dc:creator>uzuntasgokberk</dc:creator>
      <dc:date>2025-07-14T14:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Balance sheet using matrix</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Balance-sheet-using-matrix/m-p/4283129#M11774</link>
      <description>&lt;P&gt;Thanks. now i created calculated column with the name of profit for the year and value calculated is correct. but unable to show in balance sheet. is there any solution to acheive desire result. i am very new to power bi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 06:12:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Balance-sheet-using-matrix/m-p/4283129#M11774</guid>
      <dc:creator>atifkazmi1980</dc:creator>
      <dc:date>2024-11-14T06:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Balance sheet using matrix</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Balance-sheet-using-matrix/m-p/4283176#M11775</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/836132"&gt;@atifkazmi1980&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Actually, if you create calculated column you can put the the column in the values.&lt;BR /&gt;To find out the problem could you show me with example? It can be visualization or pbıx file.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Kind Regards,&lt;BR /&gt;Gökberk Uzuntaş&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":pushpin:"&gt;📌&lt;/span&gt; If this post helps, then please consider &lt;STRONG&gt;Accepting it as a solution&lt;/STRONG&gt; and giving &lt;STRONG&gt;Kudos&lt;/STRONG&gt; — it helps other members find answers faster!&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":link:"&gt;🔗&lt;/span&gt; &lt;STRONG&gt;Stay Connected:&lt;/STRONG&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":blue_book:"&gt;📘&lt;/span&gt; &lt;A href="https://medium.com/@uzuntasgokberk" target="_blank" rel="noopener"&gt;Medium&lt;/A&gt; |&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":television:"&gt;📺&lt;/span&gt; &lt;A href="https://youtube.com/@uzuntasgokberk" target="_blank" rel="noopener"&gt;YouTube&lt;/A&gt; |&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":briefcase:"&gt;💼&lt;/span&gt; &lt;A href="https://linkedin.com/in/uzuntasgokberk" target="_blank" rel="noopener"&gt;LinkedIn&lt;/A&gt; |&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":camera:"&gt;📷&lt;/span&gt; &lt;A href="https://instagram.com/developeruzuntasgokberk" target="_blank" rel="noopener"&gt;Instagram&lt;/A&gt; |&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":bird:"&gt;🐦&lt;/span&gt; &lt;A href="https://x.com/uzuntasgokberk" target="_blank" rel="noopener"&gt;X&lt;/A&gt; |&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":alien:"&gt;👽&lt;/span&gt; &lt;A href="https://reddit.com/user/uzuntasgokberk" target="_blank" rel="noopener"&gt;Reddit&lt;/A&gt; |&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":globe_with_meridians:"&gt;🌐&lt;/span&gt; &lt;A href="https://uzuntasgokberk.com" target="_blank" rel="noopener"&gt;Website&lt;/A&gt; |&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":musical_note:"&gt;🎵&lt;/span&gt; &lt;A href="https://tiktok.com/@uzuntasgokberk" target="_blank" rel="noopener"&gt;TikTok&lt;/A&gt; |&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jul 2025 13:59:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Balance-sheet-using-matrix/m-p/4283176#M11775</guid>
      <dc:creator>uzuntasgokberk</dc:creator>
      <dc:date>2025-07-14T13:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Balance sheet using matrix</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Balance-sheet-using-matrix/m-p/4287574#M11787</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/836132"&gt;@atifkazmi1980&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am assuming that your organization does not use an ERP system that automatically generates the balance sheet from recorded transactions. Typically, ERP accumulate balances for GL accounts mapped to the balance sheet, while for GL accounts mapped to the profit and loss (P&amp;amp;L) statement, they only accumulate balances for the current year. At the end of the year, the net profit or loss is transferred to the retained earnings (unappropriated profit) line which is part of BS accumulated balances.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;To replicate this logic, you can use a Calendar table, a Transactions table containing journal entries (where debits and credits sum to zero), and an additional GL_Mapping table. The GL_Mapping table should classify each GL account into either "BS" (Balance Sheet) or "PL" (Profit and Loss). Relationships should be created as follows:&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN&gt;Calendar[Date] to Transactions[Date].&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;GL_Mapping[GL_Account] to Transactions[GL_Account].&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN&gt;We calculate the balances as follows:&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN&gt;Balance Sheet (BS) Accounts: A cumulative sum of transactions for accounts classified as "BS."&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Profit and Loss (PL) Accounts: A year-to-date (YTD) sum for accounts classified as "PL."&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Retained Earnings: A cumulative sum of prior years’ "PL" transactions, explicitly added to the retained earnings GL account in the balance sheet.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1. Cumulative Sum for Balance Sheet Accounts&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;BS_Cumulative = 
CALCULATE(
    SUM(Transactions[Amount]),
    FILTER(
        ALL(Calendar),
        Calendar[Date] &amp;lt;= MAX(Calendar[Date])
    ),
    GL_Mapping[GL_Type] = "BS"
)
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;2. Year-to-Date Sum for Profit and Loss Accounts&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;PL_YTD = 
CALCULATE(
    SUM(Transactions[Amount]),
    DATESYTD(Calendar[Date]),
    GL_Mapping[GL_Type] = "PL"
)
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;3. Retained Earnings Filtered by the GL Account&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Retained_Earnings = 
CALCULATE(
    SUM(Transactions[Amount]),
    FILTER(
        Transactions,
        GL_Mapping[GL_Type] = "PL" &amp;amp;&amp;amp;
        YEAR(Transactions[Date]) &amp;lt; YEAR(MAX(Calendar[Date]))
    ),
    GL_Mapping[GL_Account] = "Retained Earnings"
)
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;Explanation of the Logic:&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN&gt;Balance Sheet: The BS_Cumulative formula calculates the running total of all "BS" transactions up to the current date.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Profit and Loss: The PL_YTD formula sums transactions for "PL" accounts year-to-date. This resets at the start of each fiscal year.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Retained Earnings: The Retained_Earnings formula:&lt;/SPAN&gt;&lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;Filters transactions for accounts classified as "PL."&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Includes only prior years’ data (YEAR(Transactions[Date]) &amp;lt; YEAR(MAX(Calendar[Date]))).&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Explicitly adds this value to the "Retained Earnings" GL account (GL_Mapping[GL_Account] = "Retained Earnings").&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN&gt;By explicitly filtering for the "Retained Earnings" GL account in the retained earnings calculation, we ensure the correct accumulation of net profit or loss into the designated retained earnings line. This approach is scalable and flexible, as changes in GL classifications can be managed directly in the GL_Mapping table.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Nov 2024 11:43:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Balance-sheet-using-matrix/m-p/4287574#M11787</guid>
      <dc:creator>DataNinja777</dc:creator>
      <dc:date>2024-11-17T11:43:48Z</dc:date>
    </item>
  </channel>
</rss>

