Forum Discussion

pedanticpad's avatar
pedanticpad
Helper II
6 years ago
Solved

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!

 

  • Mariusz's avatar
    Mariusz
    6 years ago

    Hi pedanticpad 

     

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

     

    Best Regards,
    Mariusz

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

    Please feel free to connect with me.
    LinkedIn

     

     

3 Replies

  • Mariusz's avatar
    Mariusz
    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

     

     

      • Mariusz's avatar
        Mariusz
        Community Champion

        Hi pedanticpad 

         

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

         

        Best Regards,
        Mariusz

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

        Please feel free to connect with me.
        LinkedIn