cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
HJK
Frequent Visitor

I want to get the date from another table and change it to the last day of the month.

Hi

 

I want to get the date from another table for the same Order ID and change it to the last day of the month.

How can I do that?

 

table1

HJK_0-1671415141168.png

 

 

table2

HJK_4-1671415581727.png

 

 

1 ACCEPTED SOLUTION
vicky_
Solution Sage
Solution Sage

I assume you have some sort of relationship between the order IDs in both tables.
If so you can use RELATED[TransDate] to get the related transaction day. To get the last day of the related month, you need to wrap that in EOMONTH (End Of Month).
So overall, you will have something like:

NewColumn = EOMONTH(RELATED([TransDate]), 0)

 

View solution in original post

1 REPLY 1
vicky_
Solution Sage
Solution Sage

I assume you have some sort of relationship between the order IDs in both tables.
If so you can use RELATED[TransDate] to get the related transaction day. To get the last day of the related month, you need to wrap that in EOMONTH (End Of Month).
So overall, you will have something like:

NewColumn = EOMONTH(RELATED([TransDate]), 0)

 

Helpful resources

Announcements
T-Shirt Design Challenge 2023

Power BI T-Shirt Design Challenge 2023

Submit your creative T-shirt design ideas starting March 7 through March 21, 2023.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

March Events 2023A

March 2023 Events

Find out more about the online and in person events happening in March!