Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
tc97
Frequent Visitor

Calendar Table - Days from most recent Promo

Hi, 

 

I'm creating an internal sales dashboard. I've created and joined a calendar table (below), and everything works fine to report on standard date periods (Date, Week, Week day, Month, Year)

 

DateDay NameStart of WeekStart of MonthStart of Year
01/01/2020Wednesday30/12/201901/01/202001/01/2020
02/01/2020Thursday30/12/201901/01/202001/01/2020
03/01/2020Friday30/12/201901/01/202001/01/2020
04/01/2020Saturday30/12/201901/01/202001/01/2020
05/01/2020Sunday30/12/201901/01/202001/01/2020
06/01/2020Monday06/01/202001/01/202001/01/2020
07/01/2020Tuesday06/01/202001/01/202001/01/2020
08/01/2020Wednesday06/01/202001/01/202001/01/2020

 

My problem comes when I'm looking at promotion specific data. We run various annual promotions, and the dates for each promo vary each year, so I'd like to add an additional two columns to the calendar table: [Promotion Name] and [Promotion Day]. The promotion information is currently held in another table (example below)

Promotion NameStart DateEnd Date
Promo 101/01/202003/01/2020
Promo 205/01/202010/01/2020

 

To track promotion performance against a previous cycle, I'd like to join the two tables to lookup the active promotion (if applicable) and note how many days into the promotion we are, leaving blank where no promotion was active.

DateDay NameStart of WeekStart of MonthStart of YearPromotion NamePromotion Day
01/01/2020Wednesday30/12/201901/01/202001/01/2020Promo 11
02/01/2020Thursday30/12/201901/01/202001/01/2020Promo 12
03/01/2020Friday30/12/201901/01/202001/01/2020Promo 13
04/01/2020Saturday30/12/201901/01/202001/01/2020  
05/01/2020Sunday30/12/201901/01/202001/01/2020Promo 21
06/01/2020Monday06/01/202001/01/202001/01/2020Promo 22
07/01/2020Tuesday06/01/202001/01/202001/01/2020Promo 23
08/01/2020Wednesday06/01/202001/01/202001/01/2020Promo 24

 

Is this possible within PowerBI? Hoping it's quite straightforward and I've missed something obvious...

 

Thanks in advance!

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @tc97 ,

 

You can refer to these blogs to expand date intervals:

Expand the continuous date interval - Microsoft Power BI Community

Expand the continuous date interval (Excluding wee... - Microsoft Power BI Community

Icey_0-1651132499377.png

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@tc97 , I have done something similar in this file and blog see if these can help

 

https://community.powerbi.com/t5/Community-Blog/How-to-divide-distribute-values-between-start-date-o...

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak Thanks for your quick response. 

 

Correct me if I'm wrong, but I'm not sure that approach would work for me. I think I need the two additional fields to be within the table itself.

 

The end result I'm looking for is something similar to the below, but instead of 'Month Name' in each row, I'd like "Promotion Day" (1 = Promo Start Date, 2 = Following Day, and so on)

 

tc97_0-1650909513546.png

This will allow us to compare each promotion against previous runs on a daily basis.

 

Hope that makes sense.

Icey
Community Support
Community Support

Hi @tc97 ,

 

You can refer to these blogs to expand date intervals:

Expand the continuous date interval - Microsoft Power BI Community

Expand the continuous date interval (Excluding wee... - Microsoft Power BI Community

Icey_0-1651132499377.png

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.