Forum Discussion
Profit and Loss statement - help with hierarchy
I know its been asked and I have checked all the suggested articles, but I need some help!
I'm trying to get this:
This image is from thebiaccountant.
The guy talks way over my head and every time I feel like I have a solution, it doesn't work or the DAX formula doesn't do what I want it to.
I'm trying to sort the GLAcountName into the appropriate Sales, Cost of Sales, and Expense categories but I am struggling here. Any tips or suggestions would be great.
I've tried new columns, and tables but really don't know how to get the data correct.
I've uploaded the pbix below so you can see what I am working with. Well I can't even seem to find where to upload that!
17 Replies
- MattAllington
Community Champion
The most important thing to make a P&L work is having a good chart of accounts as a lookup table. I learnt everything I know from this video. https://www.youtube.com/watch?v=ojHZkWkEY7Q/
- AnonymousNot applicableO dear... I was about 80 pct finished in building a p and l, however I think these links you two provide may bring me back to the drawing board.
- ImkeF
Community Champion
Hi kenthub,
you cannot upload files directly on the forum here. Instead, load them to a web storage (like dropbox ie) and paste the link here.
The link MattAllington has pasted is a completely different concept compared to mine and will not help you for my model. You have to choose between the 2.
- ImkeF
Community Champion
To help you set up my model, you would have to provide that Chart of accounts table as well.
Or to be more precise: We need a table which contains the definition of which accounts go into which (sub-) totals (or account groups).
- kenthub
Helper I
Gotcha. How or what would you use to connect the two tables? Like the YouTube video above shows there are headings, subheads, sub-subheadings, etc. Would it be best to associate a number linking the specific Chart of Account (Revenue, Cost of Sales, etc.) to the desired GL number? Or would you used some other method of connecting the tables?