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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
emildeak
Regular Visitor

Create new Table with Matrix of 2 Columns

Hi,

 

i think this is a simple task, but i fail to do it.

emildeak_0-1670241684839.png

I have a table with a Date colum and a second column with the values.

I Would like to get a new table where every date has every value like

 

DateValue
1.1.20201
1.1.20202
1.2.20201
1.2.20202
... 

 

Does someone have a solution to do this?

 

Thank you in advance and best regards

Emil

1 ACCEPTED SOLUTION
BA_Pete
Super User
Super User

Hi Emil,

 

Create a new table in Power Query using the 'Enter Data' function on the Home tab. Enter into the first column all of the values you want to be repeated for each date. Let's say you call this new table 'repeatList'.

Once you have that table, you can right-click it in the query list and uncheck 'Enable Load' - it doesn't need to be sent to your data model.

In your table with the dates in, create a new custom column and, as the calculation, just enter ' = repeatList '.

You can now expand your new nested tables column to have each date repeated for each value in your repeatList query.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

2 REPLIES 2
emildeak
Regular Visitor

this was simple !! Thank you !!

BA_Pete
Super User
Super User

Hi Emil,

 

Create a new table in Power Query using the 'Enter Data' function on the Home tab. Enter into the first column all of the values you want to be repeated for each date. Let's say you call this new table 'repeatList'.

Once you have that table, you can right-click it in the query list and uncheck 'Enable Load' - it doesn't need to be sent to your data model.

In your table with the dates in, create a new custom column and, as the calculation, just enter ' = repeatList '.

You can now expand your new nested tables column to have each date repeated for each value in your repeatList query.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.