cancel
Showing results for
Did you mean:
Frequent Visitor

## Calculated Row for Balance Sheet Matrix Help

Hi experts, I'm working on a project to convert some Quick Books Online accounts into dashboard reports in Power BI. I'm aware that the Power BI Online Service already has a pre-made dashboard for QBO but since it's not conducive to customization so I'm creating everything manually in Desktop.

One of the issues that I'm struggling with is the fact that QBO doesn't have or maintain a Retained Earnings account in their GL table. Therefore I'm left to creating a calculated row that takes the difference between Assets and Liabilities.

The formula is basically Sum of Assets = Sum of Liabilities + Equity.

As you can see below, what I'm looking for would be another row added to the Balance Sheet Matrix that would agregate the asset totals and subtract the liabilities totals. I've provided a condensed version of what the balance sheet table looks like also. It's essentially new transactions added each day to either an asset or liability account.

I can't quite figure out how to best approach this. My initial thought was to create a separate table that summarized the difference between Equity and Liabilities by date. And then append the two tables together.

Any direction would be greatly appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Solution Sage

## Re: Calculated Row for Balance Sheet Matrix Help

You can't just add a ROW. But you can get what  need to write a few measures

Assets = CALCULATE(SUM(table[CREDIT]),table[Account Type]="Assets")-CALCULATE(SUM(table[DEBIT]),table[Account Type]="Assets")

Liabilties = same but with ="Liabilities"

Member Contribution = measure to calcualte that

Then Retained Earnings = [Assets]-[Liabiliities]-[Member Contribution]

You can then add a Card to show this measure or Multi-Card to show the three componts and title or a Matrix with these meausres as values and display on Rows selected from the formatting pane.

2 REPLIES 2
Highlighted
Solution Sage

## Re: Calculated Row for Balance Sheet Matrix Help

You can't just add a ROW. But you can get what  need to write a few measures

Assets = CALCULATE(SUM(table[CREDIT]),table[Account Type]="Assets")-CALCULATE(SUM(table[DEBIT]),table[Account Type]="Assets")

Liabilties = same but with ="Liabilities"

Member Contribution = measure to calcualte that

Then Retained Earnings = [Assets]-[Liabiliities]-[Member Contribution]

You can then add a Card to show this measure or Multi-Card to show the three componts and title or a Matrix with these meausres as values and display on Rows selected from the formatting pane.

Resident Rockstar

## Re: Calculated Row for Balance Sheet Matrix Help

Hi @plddogs,

If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

If you still need help, please share your data sample and your expected output, so that we can help further investigate on it?

Best Regards,

Cherry

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

Announcements

#### New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

#### ‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

#### Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

#### Join THE global Power Platform event series.

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities.

#### Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors