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

Matrix - Indenting row labels, financial statements, etc.

I fear I've complicated things much more than they need to be.  I think I'm quite close to getting to a desired output, but have wrapped myself in knots at this point.

 

After watching this video: https://www.youtube.com/watch?v=mUVz59xCRMI 

 

I'm essentially trying to recreate what is shown.  I have my data (shown below) pulled in from Excel and then is unpivoted so that my columns are: 

  • Income Statement Item
  • Sort Order
  • Month
  • Value
  • Category

I built a Measure called [Financial Values] 

 

Financial Values = 
    SUM('Management Company Income Statement'[Value])

 

 

I've started to build Measures for each individual line item, e.g., Sales, with the following DAX formula: Sales

 

Sales = 
    IF(
        CALCULATE( [Financial Values],
            'Management Company Income Statement'[Income Statement Item] = "Sales") = 0, 
        BLANK(),
            CALCULATE( [Financial Values],
                    'Management Company Income Statement'[Income Statement Item] = "Sales")
            
    )

 

 

Neither of these matrix outputs shown below are ideal.  

 

The one on the left, has rows of "Income Statement Item", and Values of "Value" from the unpivoted data.

 

The one on the right has rows of "Income Statement Item" and Values of "Sales" and "Advertising & Marketing" 

 

At this point, I assume that the one on the right is probably the better, though more labor-intensive, way of the ultimate goal, assuming I can limit the columns to only dates and not individual income statement items, which will then facilitate using the SWITCH ( TRUE() )  methodology described in the video.  

 

But related, how do I indent these row labels?

 

PBIX Image 1.PNG

 

 

Line ItemQ1 Q2 
   Sales8500050000
Total Income8500050000
Gross Profit8500050000
   Advertising & Marketing224136
   Bank Charges & Fees 124
   Insurance - Health60726072
   Insurance - Professional and Other249282
   IT Equipment and Services15262
   Legal & Professional Services 1822
   Meals & Entertainment - Client3161
   Office Expenses  
   Office Supplies & Software 12
   Taxes & Licenses  
      Taxes26162319
      Wages4738155662
   Total Payroll Expenses4999957981
   Travel25015
   Travel Meals14 
Total Expenses5685366767
Net Operating Income28147-16767
Net Income28147-16767
   
   
   
   
   
   

 

 

1 ACCEPTED SOLUTION

Hi @mrothschild 

Is your data like this:

Capture1.JPG

Then your expected result is as below, right?

Capture2.JPGCapture3.JPG

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @mrothschild 

Is the last table your example data?

The final output should be a table/matrix visual which shows the value of selected item(eg, sales", or "dvertising & Marketing") during several quarters, right?

Capture7.JPG

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Hi @

 

 

 

Hi @mrothschild 

Is your data like this:

Capture1.JPG

Then your expected result is as below, right?

Capture2.JPGCapture3.JPG

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.