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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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