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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
admin11
Memorable Member
Memorable Member

Year field return null value ?

Hi All

I have a DATE field , it return correct date. 

I have create a master calendar table .

I have link sales table with master calendar.

But when i create a table , year field return null value.

admin11_1-1640442780346.png

Hope some can share with me where go wrong ?

 

My PBI sample file :-

https://www.dropbox.com/s/6cq0a9lfhyx8711/PBTI_V008.pbix?dl=0

 

Paul

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

This is because the date column you have here is text, which means the relationship does not work as expected.

 

Try redefining the column as VALUE ( SALES_I[AR Invoice Date] ) or

DATE (
	RIGHT ( SALES_I[AR Invoice Date], 4 ),
	LEFT ( SALES_I[AR Invoice Date], 2 ),
	MID ( SALES_I[AR Invoice Date], 4, 2 )
)

and make sure the column type is date or date/time.

 

View solution in original post

3 REPLIES 3
AlexisOlson
Super User
Super User

This is because the date column you have here is text, which means the relationship does not work as expected.

 

Try redefining the column as VALUE ( SALES_I[AR Invoice Date] ) or

DATE (
	RIGHT ( SALES_I[AR Invoice Date], 4 ),
	LEFT ( SALES_I[AR Invoice Date], 2 ),
	MID ( SALES_I[AR Invoice Date], 4, 2 )
)

and make sure the column type is date or date/time.

 

@AlexisOlson 

appreciated very much , it work fine. 

may i know it is possible to to remove the time stamp ? only display DD/MM/YYYY ? Now it display DD/MM/YYYY 00:00:00

 

Paul

Set it here:

AlexisOlson_0-1640482987487.png

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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