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
pedanticpad
Helper II
Helper II

P&L Layout if Calculated Table

Hi,

 

I have a table laid out out like the below.  It is a table combining multiple sources and has many calculated columns to get the desired results;

 

MonthSalesmanInvoice Sales  Direct Consumables  Direct Payroll  etc 
JanX12345    
JanY12346    
JanZ12347    
JanAA12348    
JanAB12349    
Feb      
Mar      

 

 

I may be wrong but to create a P&L matrix table I need the data to be like this;

 

Category Jan  Feb  Mar  Apr 
Sales    
Direct Consumables    
Direct Payroll    
Contribution    
Other Costs    
Other Payroll    
Contribution    
Overheads & Non Direct Payroll    
EBITDA    

 

 

I know I can do this by unpivoting in query editor if this was a query, but as my table is a calculated table is there any way to achieve this in power BI and retain all my calculations?  I have over 5,000 lines each month so I need something with minimal manual intervention.

 

Thanks!

 

1 ACCEPTED SOLUTION

Hi @pedanticpad 

 

Now you need to add all your Measures to Value section of the Matrix and Change the settings as below.

image.png

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

 

View solution in original post

3 REPLIES 3
Mariusz
Community Champion
Community Champion

Hi @pedanticpad 

 

Just use Month on Columns and Category on rows in Matrix Visual

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

 

Hi @Mariusz ,

 

That only gets me the below?  Or am i doing something wrong?

 

image.png

 

Hi @pedanticpad 

 

Now you need to add all your Measures to Value section of the Matrix and Change the settings as below.

image.png

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

 

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.