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
BGB
Helper II
Helper II

USEREALTIONSHIP convert to date in VAR

Hi all,

 

I have a calendar table date column that I'm trying to connect to my main table with an arrival date column. However, the arrival date is in datetime format. 

 

The question is: How do I convert the arrival date to use userelationship in my measure without creating a new date-only column?

Thanks in advance.

7 REPLIES 7
Ashish_Mathur
Super User
Super User

Hi,

See if in the Query Editor, you can change the data type to Date (from Date/Time)


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

The desired outcome is to use the same date-time column converted within dax when using USERELATIONSHIP.

I don't think that is possible.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi @BGB ,

I'm a little confused about your needs, Could you please explain them further? It would be good to provide a screenshot of the results you are expecting and desensitized example data.

 

Thanks for your efforts & time in advance.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

The question is to convert the date-time column to date only using Dax while using the USEREALTIONSHIP function.

This is not very tricky. You have a date-time column that needs to connect to your calendar date column. Because the calendar date does not have time we need to convert our date-time column to date only but without doing that in Power Query , can it be done using DAX?

Anonymous
Not applicable

Hi @BGB ,

As @Ashish_Mathur said, this shouldn't be possible with dax, it's recommended to get the data types converted first.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Your recommendation is not useful here. Thanks for your time.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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