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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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/
v-binbinyu-msft
Community Support
Community Support

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?

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.