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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply

Populate dates between SoW and EoW

Hello,

 

I have a standard fiscal calender which I liked to populate with our companies bespoke FY details which are held within another Power Query:

ShelleyBaynton_1-1675872285174.png 

 

ShelleyBaynton_0-1675872073400.png

I've tried the following:-

  • Created a relationship between SoW and Week Commencing
  • Used Related function to pull through
  • Merge the power queries to create new data set

 

Neither options returned a workable solution 😥

 

Any assistance would be warmly welcomed 

1 ACCEPTED SOLUTION
AnastasiaS
Resolver I
Resolver I

Hi  @Shelley-Baynton 

 

You could try to add to your table containing SoW and EoW, a column that will contain the dates between the start and end : 

In power query

1. go to add column -> Custom column

AnastasiaS_0-1675876379800.png

 

Type the following code:

={Number.From([Start])..Number.From([End])}

where you replace [start] and [end] with the right col names

 

This will add you a new column. Then click on the icon on the right and select "Expand to new rows"

AnastasiaS_2-1675876488805.png

This will add you a row per date; you'll only have to transform the type to date as it will be numeric:

AnastasiaS_3-1675876653924.png

 

Then, you could merge your date table with this table, based on the newly created column. You'll have matching values as both contain daily rows.

After merge, you can chose to keep only the FY detail column.

 

Could you try that and tell if this corresponds to your need? Don't hesitate if smth is not clear.

 

Regards,

View solution in original post

1 REPLY 1
AnastasiaS
Resolver I
Resolver I

Hi  @Shelley-Baynton 

 

You could try to add to your table containing SoW and EoW, a column that will contain the dates between the start and end : 

In power query

1. go to add column -> Custom column

AnastasiaS_0-1675876379800.png

 

Type the following code:

={Number.From([Start])..Number.From([End])}

where you replace [start] and [end] with the right col names

 

This will add you a new column. Then click on the icon on the right and select "Expand to new rows"

AnastasiaS_2-1675876488805.png

This will add you a row per date; you'll only have to transform the type to date as it will be numeric:

AnastasiaS_3-1675876653924.png

 

Then, you could merge your date table with this table, based on the newly created column. You'll have matching values as both contain daily rows.

After merge, you can chose to keep only the FY detail column.

 

Could you try that and tell if this corresponds to your need? Don't hesitate if smth is not clear.

 

Regards,

Helpful resources

Announcements
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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors
Top Kudoed Authors