Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
mrothschild
Continued Contributor
Continued Contributor

Balance Sheet in Matrix format with time period drilldown?

Excel file is here with two tabs, data, and Desired Output: https://drive.google.com/open?id=1s7lSQ15dhHeIJryeQ2Op6h2-lzLqPvo6

 

Data is also posted below.  The problem I'm running into on a few different fronts.  The MAXX measure I use is effective at the lowest level of the hierarchy: 

 

 

MAXX Measure = 
    CALCULATE(
        MAXX(
            GROUPBY('Management Company Balance Sheet','Management Company Balance Sheet'[Month],'Management Company Balance Sheet'[Value - Items]),
            'Management Company Balance Sheet'[Value - Items])
        
    )

 

 

 

but then doesn't subtotal.  SUMX was problematic, which is why I switched to MAXX.  I'm not that familiar with SWITCH(TRUE(). . .) but think that could be the solution.

 

CategoryGroupSub-CategoryItem DescriptionBalance Sheet ItemCalendar QuarterCalendar YearTable ValueSUM MeasureMAXX Measure
AssetsCurrent AssetsCash and Cash EquivalentsItemBank2Q3 2019$585,559$585,559$585,559
AssetsCurrent AssetsCash and Cash EquivalentsItemBank1Q1 2019$1,220,050$1,220,050$435,017
AssetsCurrent AssetsCash and Cash EquivalentsItemBank1Q2 2019$1,305,050$1,305,050$435,017
AssetsCurrent AssetsCash and Cash EquivalentsItemBank1Q3 2019$435,017$435,017$435,017
EquityShareholders' EquityNet IncomeItemNet Income - Balance SheetQ3 2019$427,060$427,060$427,060
EquityShareholders' EquityOwners' EquityItemOwner1 - EquityQ1 2019$1,050,000$1,050,000$350,000
EquityShareholders' EquityOwners' EquityItemOwner1 - EquityQ2 2019$1,050,000$1,050,000$350,000
EquityShareholders' EquityOwners' EquityItemOwner1 - EquityQ3 2019$350,000$350,000$350,000
AssetsCurrent AssetsCash and Cash EquivalentsItemBank1Q4 2018$850,050$850,050$300,017
EquityShareholders' EquityOwners' EquityItemOwner1 - EquityQ4 2018$850,000$850,000$300,000
AssetsCurrent AssetsCash and Cash EquivalentsItemBank1Q2 2018$450,047$450,047$250,017
AssetsCurrent AssetsCash and Cash EquivalentsItemBank1Q3 2018$750,050$750,050$250,017
EquityShareholders' EquityOwners' EquityItemOwner1 - EquityQ2 2018$450,000$450,000$250,000
EquityShareholders' EquityOwners' EquityItemOwner1 - EquityQ3 2018$750,000$750,000$250,000
EquityShareholders' EquityNet IncomeItemNet Income - Balance SheetQ2 2019($21,456)($21,456)$51,042
AssetsCurrent AssetsCash and Cash EquivalentsItemBank2Q2 2019$150,003$150,003$50,001
EquityShareholders' EquityNet IncomeItemNet Income - Balance SheetQ1 2019$56,241$56,241$47,071
AssetsCurrent AssetsCash and Cash EquivalentsItemBank2Q1 2019$0$0$0
AssetsCurrent AssetsCash and Cash EquivalentsItemBank2Q2 2018$0$0$0
AssetsCurrent AssetsCash and Cash EquivalentsItemBank2Q3 2018$0$0$0
AssetsCurrent AssetsCash and Cash EquivalentsItemBank2Q4 2018$0$0$0
EquityShareholders' EquityOwners' EquityItemOwner2 - EquityQ1 2019$0$0$0
EquityShareholders' EquityOwners' EquityItemOwner2 - EquityQ2 2018$0$0$0
EquityShareholders' EquityOwners' EquityItemOwner2 - EquityQ2 2019$0$0$0
EquityShareholders' EquityOwners' EquityItemOwner2 - EquityQ3 2018$0$0$0
EquityShareholders' EquityOwners' EquityItemOwner2 - EquityQ3 2019$0$0$0
EquityShareholders' EquityOwners' EquityItemOwner2 - EquityQ4 2018$0$0$0
EquityShareholders' EquityOwners' EquityItemRetained EarningsQ2 2018$0$0$0
EquityShareholders' EquityOwners' EquityItemRetained EarningsQ3 2018$0$0$0
EquityShareholders' EquityOwners' EquityItemRetained EarningsQ4 2018$0$0$0
Category total SummaryTotalTotal AssetsQ1 2019$1,220,050  
Category total SummaryTotalTotal AssetsQ2 2018$450,047  
Category total SummaryTotalTotal AssetsQ2 2019$1,455,053  
Category total SummaryTotalTotal AssetsQ3 2018$750,050  
Category total SummaryTotalTotal AssetsQ3 2019$1,020,575  
Category total SummaryTotalTotal AssetsQ4 2018$850,050  
Category total SummaryTotalTotal Liabilities and EquityQ1 2019$534,346  
Category total SummaryTotalTotal Liabilities and EquityQ2 2018$324,746  
Category total SummaryTotalTotal Liabilities and EquityQ2 2019$456,650  
Category total SummaryTotalTotal Liabilities and EquityQ3 2018$487,005  
Category total SummaryTotalTotal Liabilities and EquityQ3 2019$586,428  
Category total SummaryTotalTotal Liabilities and EquityQ4 2018$345,334  
Group total SummarySub-TotalTotal Current AssetsQ1 2019$1,220,050  
Group total SummarySub-TotalTotal Current AssetsQ2 2018$450,047  
Group total SummarySub-TotalTotal Current AssetsQ2 2019$1,455,053  
Group total SummarySub-TotalTotal Current AssetsQ3 2018$750,050  
Group total SummarySub-TotalTotal Current AssetsQ3 2019$1,020,575  
Group total SummarySub-TotalTotal Current AssetsQ4 2018$850,050  
Group total SummarySub-TotalTotal EquityQ1 2019$534,346  
Group total SummarySub-TotalTotal EquityQ2 2018$324,746  
Group total SummarySub-TotalTotal EquityQ2 2019$456,650  
Group total SummarySub-TotalTotal EquityQ3 2018$487,005  
Group total SummarySub-TotalTotal EquityQ3 2019$586,428  
Group total SummarySub-TotalTotal EquityQ4 2018$345,334  
Sub-category total SummarySub-Sub-TotalTotal Bank AccountsQ1 2019$1,220,050  
Sub-category total SummarySub-Sub-TotalTotal Bank AccountsQ2 2018$450,047  
Sub-category total SummarySub-Sub-TotalTotal Bank AccountsQ2 2019$1,455,053  
Sub-category total SummarySub-Sub-TotalTotal Bank AccountsQ3 2018$750,050  
Sub-category total SummarySub-Sub-TotalTotal Bank AccountsQ3 2019$1,020,575  
Sub-category total SummarySub-Sub-TotalTotal Bank AccountsQ4 2018$850,050  
EquityShareholders' EquityNet IncomeItemNet Income - Balance SheetQ2 2018($125,254)($125,254)($31,494)
EquityShareholders' EquityNet IncomeItemNet Income - Balance SheetQ3 2018($262,995)($262,995)($60,230)
EquityShareholders' EquityNet IncomeItemNet Income - Balance SheetQ4 2018($504,666)($504,666)($147,541)
EquityShareholders' EquityOwners' EquityItemRetained EarningsQ1 2019($571,895)($571,895)($190,632)
EquityShareholders' EquityOwners' EquityItemRetained EarningsQ2 2019($571,895)($571,895)($190,632)
EquityShareholders' EquityOwners' EquityItemRetained EarningsQ3 2019($190,632)($190,632)($190,632)

 

 

Desired output when time period is drilled down to Quarters:

Balance Sheet Item2019-Q12019-Q22019-Q3
Bank1               435,017               435,017           435,017
Bank2                          -                   50,001           585,559
Cash & Cash Equivalents               435,017               485,018       1,020,575
Current Assets               435,017               485,018       1,020,575
Total Assets               435,017               485,018       1,020,575
Liabilities                          -                            -                         -  
Total Liabilities                          -                            -                         -  
Owner1 - Equity               350,000               350,000           350,000
Owner2 - Equity                          -                            -                         -  
Owner's Equity               350,000               350,000           350,000
Retained Earnings            (190,632)            (190,632)         (190,632)
Net Income - Balance Sheet                 28,147               (74,268)           427,060
Total Equity               187,515                 85,100           586,428

 

 

 

Desired output when drilled up to Year:

Balance Sheet Item2019
Bank1      435,017
Bank2      585,559
Cash & Cash Equivalents   1,020,575
Current Assets   1,020,575
Total Assets   1,020,575
Liabilities                  -  
Total Liabilities                  -  
Owner1 - Equity      350,000
Owner2 - Equity                  -  
Owner's Equity      350,000
Retained Earnings    (190,632)
Net Income - Balance Sheet      427,060
Total Equity      586,428

 

 

 

 

 

 

2 REPLIES 2
v-xuding-msft
Community Support
Community Support

Hi @mrothschild ,

I don't get you. I find that some values of Balance Sheet Items in the expected output table is not in the original table, like "Cash & Cash Equivalents" and "Owner's Equity". They are in the "Sub-category" column. And in the Matrix, it will sum the values based on the values in the "Row" field automatically. So you want to re-create the vaules? Or you want to show the values for 2019? 

 

I create a sample to calculate total values in 2019.

Measure = CALCULATE(SUM('Management Company Balance Sheet'[Table Value]),FILTER('Management Company Balance Sheet','Management Company Balance Sheet'[Calendar Year] = 2019))

1.PNG

Best Regards,

Xue Ding

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-xuding-msft 

 

These are "stock" numbers, as opposed to "flow" numbers.  They are a snapshot of what's in the account(s) at a given time, so they do not sum across columns.  

 

So to simplify, imagine you had $100 in one bank and $50 in another bank, and you owned $100 of art in Q3.  In Q4, you received $75, and you put it in all three accounts equally.  So you're totals for Q4 are $125, $75, and $100, respectively - note that Total Assets shown below cannot be GRAND TOTAL, because you'll have liabilities/equity also, so say, $25 in outstanding credit card balance

 

The desired format in Quarterly drill down would be the table below.  For a yearly drill up, Q4 = last period of the year, so it would just show those totals, with the column header showing 2019.

 

But, I also want to be able to drill up/down by rows, so that I show only Total Assets, Total Liabilities, and Total Equity.  But I'm guessing in your matrix, if one were to drill up by rows that would result in double-counting of total assets, which is probably the most significant problem I'm facing.  

 

 

TIMEQ3Q4
Assets Header  
     Bank1$100$125
     Bank2$50$75
   Sub-total Cash$150$200
   Art$75$100
Total Assets$225$300
   
Liabilities Header  
   Credit Card balances$25$25
Total Liabilities$25$25
   
Equity Header  
       Spouse1 Equity$100$137.5
       Spouse2 Equity$100$137.5
   Total Spouse Equity$200$275
Total Equity$200$275
   
Total Liabilites and Equity$225$300

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.