Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi everyone, I am trying to add the date range 1/1/2019 - 12/31/2019 to my data. Can someone please help me understand how to accomplish this?
Example data:
Name | value |
A | 10 |
B | 15 |
C | 20 |
I am looking to add a date range for each row on my table like this.
Name | Value | Date |
A | 10 | 1/1/2019 |
A | 10 | 1/2/2019 |
A | 10 | 1/3/2019 |
A | 10 | 1/4/2019 |
A | 10 | 1/5/2019 |
A | 10 | 1/6/2019 |
A | 10 | 1/7/2019 |
A | 10 | 1/8/2019 |
A | 10 | 1/9/2019 |
A | 10 | 1/10/2019 |
A | 10 | 1/11/2019 |
A | 10 | 1/12/2019 |
B | 15 | 1/1/2019 |
B | 15 | 1/2/2019 |
B | 15 | 1/3/2019 |
B | 15 | 1/4/2019 |
B | 15 | 1/5/2019 |
B | 15 | 1/6/2019 |
B | 15 | 1/7/2019 |
B | 15 | 1/8/2019 |
B | 15 | 1/9/2019 |
B | 15 | 1/10/2019 |
B | 15 | 1/11/2019 |
B | 15 | 1/12/2019 |
C | 20 | 1/1/2019 |
C | 20 | 1/2/2019 |
C | 20 | 1/3/2019 |
C | 20 | 1/4/2019 |
C | 20 | 1/5/2019 |
C | 20 | 1/6/2019 |
C | 20 | 1/7/2019 |
C | 20 | 1/8/2019 |
C | 20 | 1/9/2019 |
C | 20 | 1/10/2019 |
C | 20 | 1/11/2019 |
C | 20 | 1/12/2019 |
Can someone please explain to me how I can accomplish this, as I am fairly new to Power BI and still learning the ins and outs of the system. Thanks!
Solved! Go to Solution.
@Jarodp42 assuming your original table name is Table, go to modelling tab and add following expressoin to create new table and this new table will have what you are looking for
New Table =
VAR __calendar = CALENDAR ( "2019,1,1", "2019,12,31" )
RETURN CROSSJOIN ( __calendar, 'Table' )
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@Jarodp42 so you want full year apply to these 3 rows.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@Jarodp42 assuming your original table name is Table, go to modelling tab and add following expressoin to create new table and this new table will have what you are looking for
New Table =
VAR __calendar = CALENDAR ( "2019,1,1", "2019,12,31" )
RETURN CROSSJOIN ( __calendar, 'Table' )
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@parry2k Yes, that is exactly what I was looking for. Thank you for the help!!!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |