Power BI: Equivalence between Sales Date and Promotion Start/Promotion End dates > 'tag' promotional sales

TheTallBloke

New Member
Joined
Sep 3, 2015
Messages
30
Hi all,

My company are running a very primitive promotion 'calendar' where products would get assigned to one or more promotions over a calendar year, and I have been tasked with 'tagging' whether sales at any given time were made as part of the promo, or outside the promo.

I am struggling to understand how to efficiently build a correlation relationship between the following tables in the data model (dummy data), where only the values in red below would qualify as 'sold whilst an active promotion was running'.

I am also struggling to create 2 active relations between Start and End to the Calendar table in my data model, is there a way to avoid having to split the promotion table into two sub-tables and mapping them independently?

Sales DateProduct codeQuantityTotal
31/12/2021​
A
1​
£5​
01/01/2022​
A
1​
£5
01/02/2022​
A
1​
£5​
01/03/2022​
B
1​
£5​
01/04/2022​
B
1​
£5​
01/05/2022​
B
1​
£5​
01/06/2022​
C
1​
£5
01/07/2022​
C
1​
£5
01/08/2022​
C
1​
£5
01/09/2022​
C
1​
£5​
01/10/2022​
C
1​
£5​
01/11/2022​
D
1​
£5​
01/12/2022​
E
1​
£5​

ProductPromotion code
A
1​
B
1​
C
1​
C
2​
C
3​

Promotion codeStartEnd
1​
01/01/2022​
31/01/2022​
2​
01/03/2022​
31/03/2022​
3​
01/06/2022​
31/08/2022​


Many thanks in advance for the help!
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Forum statistics

Threads
1,215,071
Messages
6,122,964
Members
449,094
Latest member
Anshu121

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top