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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
kkanda
Resolver I
Resolver I

LOOKUPVALUE from a Date column showing large whole number

Hello All,

I am using a Card to indicate the Date on which a Notification is created when we select an Equipment in the table. The DAX expression is:

= LOOKUPVALUE(List_Notifications{Created_On}, List_Notifications[Equipment],Sel_Equipment,UNICHAR932))

Created_On column contains dates with formatting of "mm/dd/yyyy" and Sel_Equipment is calculated from another similar expression. 

The result displayed in the column is a large whole number and this changes when we select another equipment again giving a result of a large whole number.

If I change the result column to say [Created by], the card shows the correct result. I cannot understand how the large number is related to a date. 

Krishna

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

Dates are stored internally as the number of days since 12/31/1899. For example, today (Aug. 6 2021) is represented as 44414.

 

You can manually format a number as date text with the FORMAT function. For example, 

FORMAT ( 44414, "yyyy-mm-dd" ) will return "2020-08-06"

 

 

View solution in original post

1 REPLY 1
AlexisOlson
Super User
Super User

Dates are stored internally as the number of days since 12/31/1899. For example, today (Aug. 6 2021) is represented as 44414.

 

You can manually format a number as date text with the FORMAT function. For example, 

FORMAT ( 44414, "yyyy-mm-dd" ) will return "2020-08-06"

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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