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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Create a Panel Data table from two different tables

Hi all, 

 

I have a table in which there are mapped different categories as follows:

mariete_c_1-1633337874450.png

 

I would like to create a new table (not a measure) that includes a date variable as follows:

 

mariete_c_2-1633337992294.png

Any idea how? I am fairly new to the app and definitely will appreciate any help.

 

Regards and thank you for your comments in advance!

Mario

 

 

2 ACCEPTED SOLUTIONS
DataInsights
Super User
Super User

@Anonymous,

 

Try this solution.

 

1. Create a table with years:

 

DataInsights_0-1633527573607.png

 

2. Create a calculated table:

 

Table3 = CROSSJOIN ( VALUES ( Table1[Category] ), VALUES ( Table2[Year] ) )

 

Result:

 

DataInsights_1-1633527631403.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

v-chenwuz-msft
Community Support
Community Support

Hi @Anonymous 

 

I'm a bit confused as to why ID 1 has become 2017?

If you want to just add a date to the table you could consider using CROSSJOIN()

Let's say you have a date table as the following:

vchenwuzmsft_0-1633569514098.png

and then another table like this

vchenwuzmsft_1-1633569514100.png

When a new table is created using CROSSJOIN()

New Table = CROSSJOIN('Table','Date table')

Result.

vchenwuzmsft_2-1633569514103.png

Best Regards

Community Support Team _ chenwu zhu

 

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

2 REPLIES 2
v-chenwuz-msft
Community Support
Community Support

Hi @Anonymous 

 

I'm a bit confused as to why ID 1 has become 2017?

If you want to just add a date to the table you could consider using CROSSJOIN()

Let's say you have a date table as the following:

vchenwuzmsft_0-1633569514098.png

and then another table like this

vchenwuzmsft_1-1633569514100.png

When a new table is created using CROSSJOIN()

New Table = CROSSJOIN('Table','Date table')

Result.

vchenwuzmsft_2-1633569514103.png

Best Regards

Community Support Team _ chenwu zhu

 

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

DataInsights
Super User
Super User

@Anonymous,

 

Try this solution.

 

1. Create a table with years:

 

DataInsights_0-1633527573607.png

 

2. Create a calculated table:

 

Table3 = CROSSJOIN ( VALUES ( Table1[Category] ), VALUES ( Table2[Year] ) )

 

Result:

 

DataInsights_1-1633527631403.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.