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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
AnjaW
Helper I
Helper I

Shouldn't the integer value assigned to a given day be a unique value?

 

I am confused. Converting either a Date or a DateTime value should return the same numerical value, as it is the same day.

Why not? Is there something in the settings I missed....?

Any advise appreciate.

Thanks.

 

I used the following measures:

DAX NOW = NOW()

DAX CONVERT NOW = CONVERT(NOW(), INTEGER)

DAX TODAY = TODAY()

DAX CONVERT TODAY = CONVERT(TODAY(), INTEGER)

AnjaW_0-1725479422113.png

 

1 ACCEPTED SOLUTION
mark_endicott
Super User
Super User

@AnjaW - both of these are rounded up to a whole number, where the time element is not visible. 

 

TODAY will produce 45539.00, whereas NOW() includes the time element as decimal places, below the screenshot shows how this changes the Interger value when it is rounded up:

 

mark_endicott_0-1725488557156.png

 

If this answers your query, please accept it as the solution to assist others with the same question.

View solution in original post

2 REPLIES 2
mark_endicott
Super User
Super User

@AnjaW - both of these are rounded up to a whole number, where the time element is not visible. 

 

TODAY will produce 45539.00, whereas NOW() includes the time element as decimal places, below the screenshot shows how this changes the Interger value when it is rounded up:

 

mark_endicott_0-1725488557156.png

 

If this answers your query, please accept it as the solution to assist others with the same question.

Thank you, that makes sense. Much appreciated.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.