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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
LorenzoMolteni
Frequent Visitor

Power Query - Bridge table - Weeknum, Date

Hi all,

 

I'm new to Power Query and looking for a solution to solve a small issue I have with my report.

 

I'm looking into sales data. My goal to is to get data from two different sources (Selection of weekly products & Daily Sales) - I do it by automatically import data from given folders - and create a moving dashboard on excel with powerpivot.

 

My two sources are built like this

Selection of weekly products

WEEKUpload dateProduct No.BrandCategory
3209.08.2020P001Guccishoes
3209.08.2020P002Saint Laurentbags
3209.08.2020P003Gucci

clothing

 

WEEKUpload dateProduct No.BrandCategory
3316.08.2020P009Guccishoes
3316.08.2020P010Valentinobags
3316.08.2020P011Gucci

clothing

 

Daily Sales

Sale DateNo.QTYRevenue
10.08.2020P0011100
10.08.2020P0034250

 

Sale DateNo.QTYRevenue
16.08.2020P0012200
16.08.2020P0103600

 

What I want to achieve on my pivot in excel - by creating connections - is that when I filter by i.e. WEEK 32 I get sale numbers only from that week and not from the next weeks (since the product will still be sold even after those days - but I'm only interested in the sales of the first week). The problem is occurring mainly due to the fact that I'm not able to create bridge tables because from one source I get the Weeknum and from the other one I get the Sale Date.

 

Please let me know if something is unclear. I thank you in advace for your help!

 

Best,

 

Lorenzo

 

 

21 REPLIES 21

Hi @edhans 

 

How would this help? The date we have in the Products table is always in the first week because that's the upload date.

My concerns are on the connection between the Products Table and the Sales Table. I don't know how to manage the data so that the pivot, when filtering by week, only takes the first week sales data from the Sales Table.

 

Let's say this what I have currently from Power Query

 

Procuts Lists

WeekProduct No.BrandCategoryUpload date

30

P001......26.07.2020
31P002  02.08.2020
31P003  02.08.2020
31P004  02.08.2020
32P005  09.08.2020
32P006  09.08.2020

 

Sales

 

Product No.QTYRevenueSale Date
P001110026.07.2020
P001220027.07.2020
P001440003.08.2020
P003230010.08.2020
P006150

10.08.2020

 

So, in this case for example, in my pivot table if I filter now by CW30 I'll should be seeing the following

Product No.QTYRevenue
P0013300

 

And not

Product No.QTYRevenue
P0017700

 

Again, if I filter by CW32 I should be seeing

Product No.QTYRevenue
P006150

 

Is this clear for you? Sorry but I really can't find a solution for this...

 

Thanks a lot!

 

Lorenzo

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

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.

Top Solution Authors