Relating data from two different periods

Anything related to PowerPivot and DAX Formuale
Posts: 1
Joined: Mon Nov 12, 2018 9:25 pm

Relating data from two different periods

Postby Lamati » Tue Nov 27, 2018 8:04 pm

Hi everyone,

I am starting to use the relational and Power Pivot databases, so I do not have much knowledge.

I have to make a comparative report between two different annual periods.

The purpose of the report is to compare the [Gross Margin] of 2017 with the Accumulated [Gross Margin] of 2018, which can be for a specific month or for the accumulated of several selected months, to see the difference between them.

I have two databases; one with total data for the year 2017 and another with disaggregated data for the months of 2018. In both databases [Gross Margin] is collected by [Customer], [Sales document], [Reporting Zone] and [Local Reporting Code].

How can I relate the 2017 data with the 2018 data? I have tried to create a code by concatenating the numbers of [Customer], [Sales document], [Reporting Zone] and [Local Reporting Code], in order to relate one year with another. The problem is that by 2018 that code does not work for me, since there can be two lines that are the same because there are data for several months.

I am blocked, since I do not know how to continue and I would be grateful if someone could shed some light on this issue or lend me their help.



DDBB.JPG (214.23 KiB) Viewed 420 times

Posts: 1049
Joined: Sun May 04, 2014 4:01 pm
Location: Sydney, Australia

Re: Relating data from two different periods

Postby MattAllington » Sat Jan 19, 2019 5:14 am

I realise this is old, but here is a reply.

There are a few approaches that are more or less pure in design. The simplest (not pure, but simple) is to append the 2 tables together and load the 2017 data for the month of Jan. Technically this is not true, but you can the report on that month (Jan 2017) as the full year against any other month(s) in your model
Matt Allington is Self Service BI Consultant, Trainer and Author of the Book "Supercharge Power BI".
Power BI Training

Return to “PowerPivot/DAX”

Who is online

Users browsing this forum: No registered users and 2 guests