<?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 Business Central Profit and Loss in PowerBI in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Business-Central-Profit-and-Loss-in-PowerBI/m-p/1082656#M15366</link>
    <description>&lt;P&gt;G'Day All&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This post is hopfully going to help future &lt;STRONG&gt;learners&lt;/STRONG&gt; wanting to create a &lt;STRONG&gt;Profile and Loss&lt;/STRONG&gt; statement using PowerBi for &lt;STRONG&gt;Business Central&lt;/STRONG&gt; specifically. I have looked though a few posts on this topic but I dont see the best way ahead. Your help is very much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The challenge I am experiencing to ensuring the relationships are correct but also being able to return data month by month (decreasing across the page)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As of &lt;STRONG&gt;2020 Business Central&lt;/STRONG&gt; has these &lt;STRONG&gt;Accouting Tables&lt;/STRONG&gt; to help get this profit and loss table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chart_Of_Accounts&lt;/P&gt;&lt;P&gt;G_LEntries&lt;/P&gt;&lt;P&gt;DimensionSetEntries&lt;/P&gt;&lt;P&gt;Date (which is the DAX Date Template shared by SQLBI.com)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please note&lt;/STRONG&gt; that there is a many to many relastionship from G_LEntries (Dimension_Set_ID) and DimensionSetEntries (Dimension_Set_ID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question 1&lt;/STRONG&gt;. How do I return the sum of G_LEntries(Amount) Starting from the current Month and working from left to right to return each month eg April 2020, March 2020 . The Chart_Of_Accounts must only filter on Posting so that we dont calulate the beginning and end totals the way Business Central Does.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&amp;nbsp;&lt;/STRONG&gt;I'd suggest that you Group your GL account numbers into logical groups before you commence slicing data. Eg Incoming on Sales and or Income on Interest, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question 2&lt;/STRONG&gt; How to use the 445 financial peroid method so that this data can also be divided across the page but also retuning the correct date syntax eg [1 Jul - 28 Jul 2019],&lt;STRONG&gt;[29 Jul - 25 Aug 2019]&lt;/STRONG&gt;,[26 Aug 2019 - 29 Sep 2019],&lt;STRONG&gt;[30 Sep 2019 - 27 Oct 2019]&lt;/STRONG&gt; etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try to edit this document so that it becomes the definative resource for all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you Power BI Community&lt;/P&gt;</description>
    <pubDate>Sun, 10 May 2020 08:56:41 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-05-10T08:56:41Z</dc:date>
    <item>
      <title>Business Central Profit and Loss in PowerBI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Business-Central-Profit-and-Loss-in-PowerBI/m-p/1082656#M15366</link>
      <description>&lt;P&gt;G'Day All&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This post is hopfully going to help future &lt;STRONG&gt;learners&lt;/STRONG&gt; wanting to create a &lt;STRONG&gt;Profile and Loss&lt;/STRONG&gt; statement using PowerBi for &lt;STRONG&gt;Business Central&lt;/STRONG&gt; specifically. I have looked though a few posts on this topic but I dont see the best way ahead. Your help is very much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The challenge I am experiencing to ensuring the relationships are correct but also being able to return data month by month (decreasing across the page)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As of &lt;STRONG&gt;2020 Business Central&lt;/STRONG&gt; has these &lt;STRONG&gt;Accouting Tables&lt;/STRONG&gt; to help get this profit and loss table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chart_Of_Accounts&lt;/P&gt;&lt;P&gt;G_LEntries&lt;/P&gt;&lt;P&gt;DimensionSetEntries&lt;/P&gt;&lt;P&gt;Date (which is the DAX Date Template shared by SQLBI.com)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please note&lt;/STRONG&gt; that there is a many to many relastionship from G_LEntries (Dimension_Set_ID) and DimensionSetEntries (Dimension_Set_ID)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question 1&lt;/STRONG&gt;. How do I return the sum of G_LEntries(Amount) Starting from the current Month and working from left to right to return each month eg April 2020, March 2020 . The Chart_Of_Accounts must only filter on Posting so that we dont calulate the beginning and end totals the way Business Central Does.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&amp;nbsp;&lt;/STRONG&gt;I'd suggest that you Group your GL account numbers into logical groups before you commence slicing data. Eg Incoming on Sales and or Income on Interest, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question 2&lt;/STRONG&gt; How to use the 445 financial peroid method so that this data can also be divided across the page but also retuning the correct date syntax eg [1 Jul - 28 Jul 2019],&lt;STRONG&gt;[29 Jul - 25 Aug 2019]&lt;/STRONG&gt;,[26 Aug 2019 - 29 Sep 2019],&lt;STRONG&gt;[30 Sep 2019 - 27 Oct 2019]&lt;/STRONG&gt; etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try to edit this document so that it becomes the definative resource for all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you Power BI Community&lt;/P&gt;</description>
      <pubDate>Sun, 10 May 2020 08:56:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Business-Central-Profit-and-Loss-in-PowerBI/m-p/1082656#M15366</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-10T08:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Business Central Profit and Loss in PowerBI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Business-Central-Profit-and-Loss-in-PowerBI/m-p/1082731#M15367</link>
      <description>&lt;P&gt;First of all, bravo for how you posted your data model. That is superb. I sincerely hope that your method of posting that catches on with people because it makes things soooooo much easier to understand. Really well done.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample data and expected output would have been nice but I'll give it a shot at answering your questions. So for the first question. I am going to assume that you will put some column from Chart_of_Accounts like Name into the Rows of a Matrix visualization. Then you would put maybe a Year/Month column from Date into the Columns. You could then filter this for a "type" in your GL_Entries for only postings. I am making a lot of assumptions here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are a bunch of threads on 445 like this one:&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Desktop/Custom-445-Fiscal-Year-Calendar/td-p/161257" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/Custom-445-Fiscal-Year-Calendar/td-p/161257&lt;/A&gt;&amp;nbsp;I believe it really comes down to having the correct values in the correct columns in your Date table to implement the 445. It's a matter of creating custom columns in the Date table.&lt;/P&gt;</description>
      <pubDate>Sun, 10 May 2020 11:16:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Business-Central-Profit-and-Loss-in-PowerBI/m-p/1082731#M15367</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-05-10T11:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Business Central Profit and Loss in PowerBI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Business-Central-Profit-and-Loss-in-PowerBI/m-p/1082977#M15380</link>
      <description>This is a full solution:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.thebiccountant.com/2016/07/21/easy-profit-loss-account-scheme-reports-power-bi-power-pivot-dax/" target="_blank"&gt;https://www.thebiccountant.com/2016/07/21/easy-profit-loss-account-scheme-reports-power-bi-power-pivot-dax/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Sun, 10 May 2020 19:57:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Business-Central-Profit-and-Loss-in-PowerBI/m-p/1082977#M15380</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-10T19:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Business Central Profit and Loss in PowerBI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Business-Central-Profit-and-Loss-in-PowerBI/m-p/1082981#M15382</link>
      <description>This also shows you some technique:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://higherlogicdownload.s3-external-1.amazonaws.com/PBIUSERGROUP/Financial%20Models%20%26%20Calculations%20Presentation.pdf?AWSAccessKeyId=AKIAVRDO7IEREB57R7MT&amp;amp;Expires=1589144097&amp;amp;Signature=SQZ9XYqs33sqT%2F8PJTLQ0hicqCc%3D" target="_blank"&gt;https://higherlogicdownload.s3-external-1.amazonaws.com/PBIUSERGROUP/Financial%20Models%20%26%20Calculations%20Presentation.pdf?AWSAccessKeyId=AKIAVRDO7IEREB57R7MT&amp;amp;Expires=1589144097&amp;amp;Signature=SQZ9XYqs33sqT%2F8PJTLQ0hicqCc%3D&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Sun, 10 May 2020 20:02:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Business-Central-Profit-and-Loss-in-PowerBI/m-p/1082981#M15382</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-10T20:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Business Central Profit and Loss in PowerBI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Business-Central-Profit-and-Loss-in-PowerBI/m-p/1083036#M15389</link>
      <description>&lt;P&gt;Thanks for the posting. That URL returns this error access denied. Am I doing something wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="line"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Sun, 10 May 2020 23:06:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Business-Central-Profit-and-Loss-in-PowerBI/m-p/1083036#M15389</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-10T23:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Business Central Profit and Loss in PowerBI</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Business-Central-Profit-and-Loss-in-PowerBI/m-p/1116764#M16348</link>
      <description>&lt;P&gt;HI Greg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think I have worked out the filter that i need&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure if I can modify the original post but let me try and verbalise the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dimension Set ID table looks like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Dimension_Set_ID&lt;/TD&gt;&lt;TD&gt;Dimension_Code&lt;/TD&gt;&lt;TD&gt;Dimension_Value_Code&lt;/TD&gt;&lt;TD&gt;Dimension_Value_ID&lt;/TD&gt;&lt;TD&gt;Dimension_Name&lt;/TD&gt;&lt;TD&gt;Dimension_Value_Name&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;Entity&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;Entity&lt;/TD&gt;&lt;TD&gt;Entity #1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;Entity&lt;/TD&gt;&lt;TD&gt;101&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;Entity&lt;/TD&gt;&lt;TD&gt;Entity #2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;Cost Centre&lt;/TD&gt;&lt;TD&gt;8000&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;Cost Centre&lt;/TD&gt;&lt;TD&gt;Store Name 8000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;Cost Centre&lt;/TD&gt;&lt;TD&gt;8001&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;Cost Centre&lt;/TD&gt;&lt;TD&gt;Store Name 8001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;Entity&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;Entity&lt;/TD&gt;&lt;TD&gt;Entity #1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;Cost Centre&lt;/TD&gt;&lt;TD&gt;8002&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;Cost Centre&lt;/TD&gt;&lt;TD&gt;Store Name 8002&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So when I want to filter on Dimension_Value_Code = 100 I also want the related Cost Centre to be filtered&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Entity = 100 (includes Cost Centre 8000 and 8001)&lt;/P&gt;&lt;P&gt;Entiy = 101 (includes Cost Centre 8002)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the link to the detailed overview Microsoft Business Central&amp;nbsp;&lt;A href="http://here" target="_self"&gt;https://docs.microsoft.com/en-us/dynamics365/business-central/design-details-dimension-set-entries-overview&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 May 2020 01:26:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Business-Central-Profit-and-Loss-in-PowerBI/m-p/1116764#M16348</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-25T01:26:21Z</dc:date>
    </item>
  </channel>
</rss>

