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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
quickbi
Helper II
Helper II

Balance sheet question

Hi all,

 

I need your help because I'm doing a balance sheet.

I have an Excel file where I assign the corresponding accounts to each line in the structures. In this mapping table, I have account numbers with 2, 3, or 4 characters. Then, in the BS_ledger, I have all the accounts with their balances, but they are 9 digits long.

The problem arises, for example, when the inventory line corresponds to the sum of all accounts that start with 43. Then, the tax line includes 4701 and 4709, and you subtract 567.

How would you go about doing this?

Thank you very much.

3 REPLIES 3
rajendraongole1
Super User
Super User

Hi @quickbi -Can you please provide some sample data for reference , so that will analyze and share the expectations.

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





YEs By the moment I can give screen shots because its a draft done in excel that I want to do it  in PBI.

This is the balance sheet structure:

quickbi_0-1721922430655.png

as you can see in account group column there are some group accounts, with 3 or 4 digits.
This is an example coming from the balance sheet ledger:

quickbi_1-1721922549032.png

You can see grouped accounts depending on the digits bs_acct_4 for 4 digits, bs_acct_3 for 3 etc.
I want to create a table using BS structure as a dimensions and values coming from BS_ledger. 
The DAX that I want to create is, depending on the values coming from the structure I 'll have to choose between  2,3 or 4 digits sum of accounts

 




 

Anonymous
Not applicable

@rajendraongole1 Thanks for your contribution on this thread.

Hi @quickbi ,

Thanks for your reply. Base on your description, there are two sheets "balance sheet structure" and "balance sheet ledger". And you want to achieve the same output in Power BI with the one in the excel. The account_group with 4 digits, 3 digits and 2 digits corresponed to the bs_acct_4,bs_acct_3 and bs_acct_2 in the sheet "balance sheet ledger"? What's your expected result? Could you please provide some raw data in your tables(exclude sensitive data) with Text format and explain the expected result with more details(examples, screenshot etc.) base on your sample data? It would be helpful to find out the solution. You can refer the following link to share the required info:

How to provide sample data in the Power BI Forum

vyiruanmsft_0-1721979019156.png

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors