cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Date table with extra items

Hi there,

 

What I need is a basic date table with some extra items.

In 1 table I have a calender from Power BI with Year and Month (multiple years, all months per year).

In the other table I have one column with a lot of items, for example a, b, c, etc.

 

I need to combine these two tables so that all items repeat for every month in every year.

For example:

 

2020 january a

2020 january b

2020 january c

2020 february a

2020 february b

2020 february c

etc. 

 

Thanks for your help.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User IV
Super User IV

@Mengeltje ,In Edit query mode

https://radacad.com/append-vs-merge-in-power-bi-and-power-query

 

In DAX you have crossjoin

new table = Crossjoin(Table1,Table2)

 

new table = filter(Crossjoin(Table1,Table2), table1[A]= table2[A])

 

In case you join between two tables you can use summarize, calculatetable



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

2 REPLIES 2
Highlighted
Resolver I
Resolver I

Without seeing your tables I'm not 100% this will work, but you could try editing your query in the editor (Click transform data in the top ribbon in the desktop). Try merging the tables using a full outer join which should create a table with every item assigned to every item. If that doesn't work could you post some sample data, and I can take a look.

Highlighted
Super User IV
Super User IV

@Mengeltje ,In Edit query mode

https://radacad.com/append-vs-merge-in-power-bi-and-power-query

 

In DAX you have crossjoin

new table = Crossjoin(Table1,Table2)

 

new table = filter(Crossjoin(Table1,Table2), table1[A]= table2[A])

 

In case you join between two tables you can use summarize, calculatetable



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Community Conference

Microsoft Power Platform Communities

Check out the Winners!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors