cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Babycakes
Helper I
Helper I

Dates and Fortnights

Good afternoon

 

I have a date table set out in File : capture  where I have the start date and end date.  Then end date to match periods."FNE"

 

This is on one table 1

 

On table 2 I have a "shift start date".  

 

I need to have a colum on Table 2 that returns;

 

if Shift start date is between start date and End date , return FNE date.

 

Can you assist please?

1 ACCEPTED SOLUTION

@Babycakes , Assume you have table 1 and table 2

 

a new column in table 2

 

Maxx(filter(Table1, Table2[Shift start Date] >= Table1[Start Date] && Table2[Shift start Date] >= Table1[end  Date] ), Table1 [FNE])

 

refer 4 ways to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8



!! Microsoft Fabric !!
Microsoft Power BI Learning Resources, 2023 !!
Learn Power BI - Full Course with Dec-2022, with Window, Index, Offset, 100+ Topics !!
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!

View solution in original post

2 REPLIES 2
Babycakes
Helper I
Helper I

Capture.PNG

Capture 2.PNG

  

@Babycakes , Assume you have table 1 and table 2

 

a new column in table 2

 

Maxx(filter(Table1, Table2[Shift start Date] >= Table1[Start Date] && Table2[Shift start Date] >= Table1[end  Date] ), Table1 [FNE])

 

refer 4 ways to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8



!! Microsoft Fabric !!
Microsoft Power BI Learning Resources, 2023 !!
Learn Power BI - Full Course with Dec-2022, with Window, Index, Offset, 100+ Topics !!
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!

Helpful resources

Announcements
May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Submit your Data Story

Data Stories Gallery

Share your Data Story with the Community in the Data Stories Gallery.

Top Solution Authors