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
artfulmunkeey
Helper I
Helper I

Help needed to create new tables using existing tables and measures

Hi, 

 

I have been struggling with this for some time, and whilst I have been scouring the internet for solutions, I am not sure if I am phrasing the problem correctly in my searches, and would be very grateful if someone could offer some assistance.

 

I am attempting to build a report on my P&L data. It comes in the form of a report from our ERP resembling the following:

 

DepartmentAmountCurrencyPeriodReporting Code
CS EUR202001INC-LAB
    INC-SUB
    INC-OTH
    COS-SAL
    COS-BEN
    COS-BIL
    COS-NON
    SUP-IT
    SUP-MAR
    SUP-OFF
    SUP-INT

 

I then have a master reporting code table

 

Title 1Title 2Reporting Code
RevenueIncome LabourINC-LAB
RevenueIncome SubcoINC-SUB
RevenueOther IncomeINC-OTH
Direct CostsSalariesCOS-SAL
Direct CostsBenefitsCOS-BEN
Direct CostsBillableCOS-BIL
Direct CostsNon-billableCOS-NON
SupportITSUP-IT
SupportMarketingSUP-MAR
SupportOffice RentSUP-OFF
SupportInterest & chargesSUP-INT

 

a master department table

 

DepartmentDepartment (T)
CSCorporate Support
  
  
  
  
  
  
  
  
  
  

 

and of course a good date table...

 

I am able to create a matrix which reports on all the values in the Title columns, something like the following (filterable by date and department):

 

  Current MonthYTD
Revenue TOTAL €TOTAL €
 Income Labour
 Income Subco
 Other Income
Direct Costs TOTAL €TOTAL €
 Salaries
 Benefits
 Billable
 Non-billable
Support TOTAL €TOTAL €
 IT
 Marketing
 Office Rent
 Interest & charges

 

In order to calculate Gross Margin and Gross Margin as % of Revenue, I have created measures, however, I would like these measures to appear in my matrix (I currently can only display them in a separate visual). Ideally I want something like the following:

 

Title 1Title 2AmountPeriodDepartment
RevenueIncome Labour   
RevenueIncome Subco   
RevenueOther Income   
Direct CostsSalaries   
Direct CostsBenefits   
Direct CostsBillable   
Direct CostsNon-billable   
Gross MarginGross MarginMeasures
Gross MarginGross Margin % on Revenue
SupportIT   
SupportMarketing   
SupportOffice Rent   
SupportInterest & charges   

 

 

I suspect I need to create a new table, merging the data from the reporiting with the measures, and adding new rows in the tile 1 and title 2 fields to be able to map it and display it correctly in a matrix.

 

Is this possible? If so, how? Can someone please help, or point me in the direction of some online material which would guide me through it?

 

Thanks in advance!

1 ACCEPTED SOLUTION

Take a look at my article here. 
https://exceleratorbi.com.au/build-a-pl-with-power-bi/

and here

https://exceleratorbi.com.au/building-a-matrix-with-asymmetrical-columns-and-rows-in-power-bi/

 

i have a follow up to the first article. I may release that new to week, so keep an eye out. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

View solution in original post

3 REPLIES 3

Great. I'm glad it helped. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

Take a look at my article here. 
https://exceleratorbi.com.au/build-a-pl-with-power-bi/

and here

https://exceleratorbi.com.au/building-a-matrix-with-asymmetrical-columns-and-rows-in-power-bi/

 

i have a follow up to the first article. I may release that new to week, so keep an eye out. 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

Matt, thank you very muhc for this resource, it was very detailed and extremely useful! I spent some time over the weekend and based on your instructions have succefully implemented my P&L!

 

Thank you very much for your support!

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.