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
Anonymous
Not applicable

Date Hierarchy/Dax Function

Hi Everyone,
I have a date column in table A called Transaction Date, when I'm working on Table B ( I have already stated the relationship between both tables by customer number), and I try to write a DAX function regarding this column, I don't get [Transaction Date].[Year] or similar. 
I have checked the query editor and the column is a date column, so no issue in that. 
Also the transaction date is connected to the calendar table. 
Any thoughts? 
Thank you

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , try

year(related(Table1[Transaction Date]))

 

or

 

year(maxx(relatedtable(Table1),Table1[Transaction Date]) )

 

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

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

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

Jan NL Carousel

Fabric Community Update - January 2025

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