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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Insert a dates between list of dates in power quary

hi guys, 

i am newbie in power bi and i have quation..

i have a big list of dates between mondey to friday and i need to "open" the list and insert the dates of Saturday and Sunday every week and then insert the value of the last friday in reapet 

 

Btw everything have to be in power quary only without using Dax

1 ACCEPTED SOLUTION
v-yiruan-msft
Community Support
Community Support

Hi @Anonymous ,

You can follow the steps below to get it in Power Query Editor, please see the attachment for the details.

1. Create a date table with the full dates(include Saturday and Sunday) in Power Query Editor

2. Merge the queries using Right Outter join

yingyinr_0-1671011010444.png

yingyinr_1-1671011070518.png

In addition, you can also refer the following links to get it:

1. Get the column [End Date]

Refer to Previous Row and Next Row in Power Query

yingyinr_2-1671011262580.png

2. Fill the dates

How to add rows for dates between start and end dates in Power BI date range data

How to Fill Dates Between Start Date and End Date in Power BI (Power Query)

yingyinr_3-1671011388854.png

Best Regards

Community Support Team _ Rena
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-yiruan-msft
Community Support
Community Support

Hi @Anonymous ,

You can follow the steps below to get it in Power Query Editor, please see the attachment for the details.

1. Create a date table with the full dates(include Saturday and Sunday) in Power Query Editor

2. Merge the queries using Right Outter join

yingyinr_0-1671011010444.png

yingyinr_1-1671011070518.png

In addition, you can also refer the following links to get it:

1. Get the column [End Date]

Refer to Previous Row and Next Row in Power Query

yingyinr_2-1671011262580.png

2. Fill the dates

How to add rows for dates between start and end dates in Power BI date range data

How to Fill Dates Between Start Date and End Date in Power BI (Power Query)

yingyinr_3-1671011388854.png

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
Super User

@Anonymous, The information you have provided is not making the problem clear to me. Can you please explain with an example?
refer if this can help

https://amitchandak.medium.com/power-query-get-all-dates-between-the-start-and-end-date-9ad6a84cf5f2
Appreciate your Kudos.


Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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