<?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: Chart of Accounts Totalling in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Chart-of-Accounts-Totalling/m-p/1172286#M18104</link>
    <description>&lt;P&gt;HI Stevedep&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you can bring into your visalisation the totalisaion column and then scroll down to No. 1299 you can see that the field says 1200..1299. The idea is to use this totalling columnn to calculate the sum of the No (so 1200 through 1299) to get your the total value for Total Cash and Equilivants.&lt;/P&gt;&lt;P&gt;Another example is 2499 which is Total Motor Vehicle. To work out the calculuation of the amounts you need to add all the general ledger accounts from 3400..3499. This would be another ledger balance. and so on.&lt;/P&gt;&lt;P&gt;I hope that makes sense.&lt;/P&gt;</description>
    <pubDate>Sun, 21 Jun 2020 08:49:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-06-21T08:49:24Z</dc:date>
    <item>
      <title>Chart of Accounts Totalling</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Chart-of-Accounts-Totalling/m-p/1131176#M16801</link>
      <description>&lt;P&gt;Is it possible to recreate this Chart Of Accounts in DAX?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see this is a list of accounts starting at 1000 with a heading called &lt;STRONG&gt;Statement of Financial Position&lt;/STRONG&gt; that I would like to also have returned into a visual with the related subaccounts that all roll up.&lt;/P&gt;&lt;P&gt;The "account type" indicates if its a Heading, Begin-Total or End-Total but the trick is to use the totalling column to calculate the range to sum e.g. &lt;STRONG&gt;Cash and Equivalents&lt;/STRONG&gt; are the sum of 1200 .. 1299 as indicated below and follows on to the rest of the items. See 2nd picture.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What Visual would best be used here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A title="SampleFile" href="https://1drv.ms/u/s!AnJlF6xtqvns6HbgdRAQ1l2howQX?e=cb2xg6" target="_self"&gt;Sample PIBX here&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A title="Sample Data" href="https://1drv.ms/x/s!AnJlF6xtqvns6HewXVmzfSNCddbN?e=hYFEVQ" target="_self"&gt;Sample Data in Excel&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 31 May 2020 00:12:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Chart-of-Accounts-Totalling/m-p/1131176#M16801</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-31T00:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Chart of Accounts Totalling</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Chart-of-Accounts-Totalling/m-p/1135767#M16922</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its possible but requires some trickery.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;First create new columns for Level 1, 2, etc. Create a hierarchy from them. Put them in the rows of a matrix. The columns will be dynamic. First store the column name in a separate table. Join the table using the value 1. Add a switch statement for the value part of the matrix:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ColValue = SWITCH([currentcol];"Account Category";MAX(Chart_of_Accounts[Account_Category]);"Account Subcategory";MAX(Chart_of_Accounts[Account_Category]);"Balance";SUM(Chart_of_Accounts[Balance]))&lt;/LI-CODE&gt;&lt;P&gt;See this video with the steps:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Link to the Power BI file is &lt;A href="https://1drv.ms/u/s!AvU6hhKLfmEcgdduEByMltOJ0TMpcA?e=D8Gk8v" target="_self"&gt;here&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please mark as solution when this is what you are looking for. Kudo's are appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steve.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 10:40:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Chart-of-Accounts-Totalling/m-p/1135767#M16922</guid>
      <dc:creator>stevedep</dc:creator>
      <dc:date>2020-06-02T10:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Chart of Accounts Totalling</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Chart-of-Accounts-Totalling/m-p/1135824#M16928</link>
      <description>&lt;P&gt;Hi Steve&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for assisting.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Q.1 How did you create the L1 and L2 index? Was this manually created?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Whilst it seems that you have created what I was lookng for, I was hoping to make use of the totalling column as this has a number range to utilise eg 1200..1299, which can change occasionally and I dont want to have to create new indexes each time a new General Ledge Number is added.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I needed to replicate this chart of accounts giving a total for the grouped totals eg total of 1200..1299 being a subtotal when the Account Type is End-Total.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope that makes sense.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 11:09:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Chart-of-Accounts-Totalling/m-p/1135824#M16928</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-02T11:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Chart of Accounts Totalling</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Chart-of-Accounts-Totalling/m-p/1135881#M16929</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The L1 is the first left character of the Account No. L2 is the first 2. So this is robust, in the sense that you do not need to manually add new levels.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards, Steve.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2020 11:54:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Chart-of-Accounts-Totalling/m-p/1135881#M16929</guid>
      <dc:creator>stevedep</dc:creator>
      <dc:date>2020-06-02T11:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Chart of Accounts Totalling</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Chart-of-Accounts-Totalling/m-p/1143303#M17163</link>
      <description>&lt;P&gt;Does this work for you?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2020 04:09:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Chart-of-Accounts-Totalling/m-p/1143303#M17163</guid>
      <dc:creator>stevedep</dc:creator>
      <dc:date>2020-06-05T04:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Chart of Accounts Totalling</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Chart-of-Accounts-Totalling/m-p/1146325#M17316</link>
      <description>&lt;P&gt;Kindly let us know if this works for you. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 05:21:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Chart-of-Accounts-Totalling/m-p/1146325#M17316</guid>
      <dc:creator>stevedep</dc:creator>
      <dc:date>2020-06-08T05:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Chart of Accounts Totalling</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Chart-of-Accounts-Totalling/m-p/1146365#M17318</link>
      <description>&lt;P&gt;Hi Stevedep&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have not attempted to do this report using the manner you suggested. I am trying to work out of it possible to use the existing data and use the totalling column to calculate the data. I don't want to make any changes to the data structure as this is how business central send out the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 05:59:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Chart-of-Accounts-Totalling/m-p/1146365#M17318</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-08T05:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Chart of Accounts Totalling</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Chart-of-Accounts-Totalling/m-p/1154820#M17637</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Just to be sure, I only added 2 calculated columns, so there are no changes to the data model. Its all done in the front-end.&lt;/P&gt;&lt;P&gt;Kind regards, Steve.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 07:29:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Chart-of-Accounts-Totalling/m-p/1154820#M17637</guid>
      <dc:creator>stevedep</dc:creator>
      <dc:date>2020-06-12T07:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Chart of Accounts Totalling</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Chart-of-Accounts-Totalling/m-p/1171900#M18084</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;; Have you been able to take a look? It seems pretty clear its working from the visuals I shared?&lt;/P&gt;</description>
      <pubDate>Sat, 20 Jun 2020 07:13:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Chart-of-Accounts-Totalling/m-p/1171900#M18084</guid>
      <dc:creator>stevedep</dc:creator>
      <dc:date>2020-06-20T07:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Chart of Accounts Totalling</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Chart-of-Accounts-Totalling/m-p/1172286#M18104</link>
      <description>&lt;P&gt;HI Stevedep&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you can bring into your visalisation the totalisaion column and then scroll down to No. 1299 you can see that the field says 1200..1299. The idea is to use this totalling columnn to calculate the sum of the No (so 1200 through 1299) to get your the total value for Total Cash and Equilivants.&lt;/P&gt;&lt;P&gt;Another example is 2499 which is Total Motor Vehicle. To work out the calculuation of the amounts you need to add all the general ledger accounts from 3400..3499. This would be another ledger balance. and so on.&lt;/P&gt;&lt;P&gt;I hope that makes sense.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jun 2020 08:49:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Chart-of-Accounts-Totalling/m-p/1172286#M18104</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-21T08:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Chart of Accounts Totalling</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Chart-of-Accounts-Totalling/m-p/1173326#M18175</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see the requirement now for dynamic totaling based on the account range in the totaling column. I was thrown a bit 'off balance' &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; because the value was already available in your dataset, and I focussed on the lay out challenge too much.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyways, should be working now as expected with the following DAX code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DynamicBalance = 
var _Start = SELECTEDVALUE(Chart_of_Accounts[start])
var _End = SELECTEDVALUE(Chart_of_Accounts[end])
return
CALCULATE(SUM(Chart_of_Accounts[Balance]);FILTER(ALL(Chart_of_Accounts);Chart_of_Accounts[No]&amp;gt;=_Start &amp;amp;&amp;amp; Chart_of_Accounts[No] &amp;lt; _End &amp;amp;&amp;amp; Chart_of_Accounts[Totaling]=""))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which requires 2 columns to give the start and end of the range:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;start = 
IF(SEARCH("..";Chart_of_Accounts[Totaling];1;0)&amp;gt;0;
LEFT(Chart_of_Accounts[Totaling];
SEARCH("..";Chart_of_Accounts[Totaling];1;0)-1);BLANK())&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;end = 
IF(SEARCH("..";Chart_of_Accounts[Totaling];1;0)&amp;gt;0;
RIGHT(Chart_of_Accounts[Totaling];4);BLANK())&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;result:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;File &lt;STRONG&gt;&lt;A href="https://1drv.ms/u/s!AvU6hhKLfmEcgdh71qlQ4Ug9vDBp5A?e=L8E1AG" target="_self"&gt;here&lt;/A&gt;&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this works for you.&lt;/P&gt;&lt;P&gt;Kind regards, Steve.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 09:32:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Chart-of-Accounts-Totalling/m-p/1173326#M18175</guid>
      <dc:creator>stevedep</dc:creator>
      <dc:date>2020-06-22T09:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Chart of Accounts Totalling</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Chart-of-Accounts-Totalling/m-p/1173356#M18179</link>
      <description>&lt;P&gt;Look great! Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry about the confusion. Explaining it difficult but I think you got it now. I presume we can drop the "L1","L2", ID and cols table to have a final clean solution?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 09:46:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Chart-of-Accounts-Totalling/m-p/1173356#M18179</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-22T09:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Chart of Accounts Totalling</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Chart-of-Accounts-Totalling/m-p/1173425#M18181</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;, and now to drive it to completion and bring it together I modified the formula a bit so detailed posting are displayed, as well are the range aggrates:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DynamicBalance = 
var _Start = SELECTEDVALUE(Chart_of_Accounts[start])
var _End = SELECTEDVALUE(Chart_of_Accounts[end])
return
IF(MIN(Chart_of_Accounts[Totaling])="";CALCULATE(SUM(Chart_of_Accounts[Balance]));
CALCULATE(SUM(Chart_of_Accounts[Balance]);FILTER(ALL(Chart_of_Accounts);Chart_of_Accounts[No]&amp;gt;=_Start &amp;amp;&amp;amp; Chart_of_Accounts[No] &amp;lt; _End &amp;amp;&amp;amp; Chart_of_Accounts[Totaling]=""))
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The methodology to display attributenames in matrix cells is still in (optionally) which requires:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ColValue = SWITCH([currentcol];"Name"; MAX(Chart_of_Accounts[Name]);"Account Category";MAX(Chart_of_Accounts[Account_Category]);"Account Subcategory";MAX(Chart_of_Accounts[Account_Category]);"Balance";[DynamicBalance])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; And an addition table with columns names to display the attribute values in matrix cells:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;To add these column names, go to menu in the UI and 'enter data'.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Now the final result looks like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;This has both dynamic totaling based on the range in a cell and the layout with grouping on account no's.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The link to the &lt;A href="https://1drv.ms/u/s!AvU6hhKLfmEcgdh71qlQ4Ug9vDBp5A?e=sYsgBL" target="_self"&gt;file&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope we got it?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 10:38:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Chart-of-Accounts-Totalling/m-p/1173425#M18181</guid>
      <dc:creator>stevedep</dc:creator>
      <dc:date>2020-06-22T10:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Chart of Accounts Totalling</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Chart-of-Accounts-Totalling/m-p/1173529#M18194</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;, some fine tuning, prevent summing the sums twice, to prevent summing of the total account.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Colvalue is now:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ColValue = SWITCH([currentcol];"Name"; MAX(Chart_of_Accounts[Name]);"Account Category";MAX(Chart_of_Accounts[Account_Category]);"Account Subcategory";MAX(Chart_of_Accounts[Account_Category]);"Balance";[Measure])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;its referring to 'measure':&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Measure = IF(HASONEVALUE(Chart_of_Accounts[No]);[DynamicBalance];SUMX(CALCULATETABLE(Chart_of_Accounts;Chart_of_Accounts[Totaling]="");[DynamicBalance]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dynamic balance now supports the second range:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DynamicBalance = 
var _Start = SELECTEDVALUE(Chart_of_Accounts[start])
var _End = SELECTEDVALUE(Chart_of_Accounts[end])
var _2ndstart = SELECTEDVALUE(Chart_of_Accounts[2ndstart])
var _2ndend = SELECTEDVALUE(Chart_of_Accounts[2ndend])
return
IF(MIN(Chart_of_Accounts[Totaling])="";CALCULATE(SUM(Chart_of_Accounts[Balance]));
CALCULATE(SUM(Chart_of_Accounts[Balance]);FILTER(ALL(Chart_of_Accounts);Chart_of_Accounts[No]&amp;gt;=_Start &amp;amp;&amp;amp; Chart_of_Accounts[No] &amp;lt; _End &amp;amp;&amp;amp; Chart_of_Accounts[Totaling]=""))+
IF(MIN(Chart_of_Accounts[secondrange])="";0;
CALCULATE(SUM(Chart_of_Accounts[Balance]);FILTER(ALL(Chart_of_Accounts);Chart_of_Accounts[No]&amp;gt;=_2ndstart &amp;amp;&amp;amp; Chart_of_Accounts[No] &amp;lt; _2ndend &amp;amp;&amp;amp; Chart_of_Accounts[Totaling]="")))
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This does require 3 calculated columns:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;secondrange = 
IF(SEARCH("|";Chart_of_Accounts[Totaling];1;-1)&amp;gt;0;
RIGHT(Chart_of_Accounts[Totaling];LEN(Chart_of_Accounts[Totaling])-SEARCH("|";Chart_of_Accounts[Totaling];1;0));"")&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;2ndstart = IF(LEN(Chart_of_Accounts[secondrange])&amp;gt;2;LEFT(Chart_of_Accounts[secondrange];4);"")&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;2ndend = IF(LEN(Chart_of_Accounts[secondrange])&amp;gt;2;RIGHT(Chart_of_Accounts[secondrange];4);"")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now the results look like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Link to the file is the same.&lt;/P&gt;&lt;P&gt;Should be it right? Multiple ranges, proper aggregation, flexible slice and dicing. Layout in the desired shape.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need to wrap this one up, pro bono ours almost depleted for this one.&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards, Steve.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2020 12:29:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Chart-of-Accounts-Totalling/m-p/1173529#M18194</guid>
      <dc:creator>stevedep</dc:creator>
      <dc:date>2020-06-22T12:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Chart of Accounts Totalling</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Chart-of-Accounts-Totalling/m-p/1411218#M26158</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="4037" data-lia-user-login="stevedep" class="lia-mention lia-mention-user"&gt;stevedep&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really appreciate your taking the time to respond to my query. Your PBIX file looks very promising.&lt;/P&gt;&lt;P&gt;I am studying your PBIX file and trying to replicate the steps for my scenario .&amp;nbsp; Will get back to you shortly.&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;</description>
      <pubDate>Sun, 04 Oct 2020 06:29:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Chart-of-Accounts-Totalling/m-p/1411218#M26158</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-04T06:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: Chart of Accounts Totalling</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Chart-of-Accounts-Totalling/m-p/1411225#M26159</link>
      <description>&lt;P&gt;Welcome, good luck. I will see a notification when you tag me.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Oct 2020 06:40:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Chart-of-Accounts-Totalling/m-p/1411225#M26159</guid>
      <dc:creator>stevedep</dc:creator>
      <dc:date>2020-10-04T06:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Chart of Accounts Totalling</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Chart-of-Accounts-Totalling/m-p/3145453#M112510</link>
      <description>&lt;P&gt;Hi! Could you share your file again if possible? I am facing the same issue as you, but I do not understand much of the solution without the pbx file.&lt;BR /&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 18:01:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Chart-of-Accounts-Totalling/m-p/3145453#M112510</guid>
      <dc:creator>Zosy</dc:creator>
      <dc:date>2023-03-21T18:01:06Z</dc:date>
    </item>
  </channel>
</rss>

