Blog: [ Ссылка ]
Files: [ Ссылка ]
LinkedIn: [ Ссылка ]
For this video we will look at benchmarking business years for sales and profit. We will look at modelling the data so that we can compare values by creating references to our sales and date table. Both fact tables however will share the same dimensions allowing us to dynamically chose the context for our benchmarking calculations.
Welcome to PowerÆgg, I am Nadim Abou-Khalil, Power BI Consultant, and have been working in the field for 8 years.
Business Case Requirements
• A table for sales and a table for profit, comparing a selected year with another selected year and showing the differences.
• The table must allow us to dynamically choose what context we want to calculate our values on.
• A bar chart for profit and a bar chart for sales showing the sales or profit values for the selected year and the comparison year.
• A context filter allowing us to change the dimensions and two year filters for the benchmarking.
Data Model Requirements
• A sales fact table and a reference to the fact table.
• A date table and a reference to the date table.
• Shared dimensions between the fact table and the benchmarking fact table.
• Inactive relationships between the sales and date table, and the sales benchmarking and date benchmarking table.
Measure Requirements
• A sales fact table and a reference to the fact table.
• Sales and profit measures.
o For sales table – with userelationship().
o For benchmarking sales table – with userelationship().
• Delta measures.
Solution Review
• Pros
o Ability to dynamically compare sales or profit values between two years dynamically.
o Possibility to change context/dimensions/granularity dynamically so that measure are calculated in a given context.
• Cons
o References to sales fact table and date dimension table has to be made.
Performance may suffer on large dataloads.
![](https://s2.save4k.ru/pic/-ZFverYzHQU/maxresdefault.jpg)