Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet 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
Hi,
i think this is a simple task, but i fail to do it.
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
Date | Value |
1.1.2020 | 1 |
1.1.2020 | 2 |
1.2.2020 | 1 |
1.2.2020 | 2 |
... |
Does someone have a solution to do this?
Thank you in advance and best regards
Emil
Solved! Go to Solution.
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
Proud to be a Datanaut!
this was simple !! Thank you !!
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
Proud to be a Datanaut!
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
24 | |
13 | |
12 | |
11 | |
8 |
User | Count |
---|---|
42 | |
25 | |
14 | |
14 | |
12 |