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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Nekkar
New Member

Dax data type identyfication, data type format change

Hi All,

1) is there any dax function which would help me identify data type of a data in column?

     Eg. CheckDataType( 'Data'[Date])

 

2) I would like to convert values in 2 columns in two tables to create relationship between 2 tables (I can use Dax only 🙂

I've already gave it a solid try with no success so any idea is welcome.

I would be thrilled to see sth like cast in SQL.

Nekkar_0-1632829698057.png

 

 

1 ACCEPTED SOLUTION

Hi @Nekkar ,

 

In that case this should work, create a new column:

NewDate = DATE(RIGHT(Sales[SDate],4),MID(Sales[SDate],4,2),LEFT(Sales[SDate],2))
 
Jori
 
If I answered your question, please mark it as a solution to help other members find it more quickly.

View solution in original post

4 REPLIES 4
Nekkar
New Member

Yes, I really do. I do not have access to options you show. I cannot change anything.

And I would like to use columns from the example to create a relationship so I need to have them as the same data type.

Hi @Nekkar ,

 

In that case this should work, create a new column:

NewDate = DATE(RIGHT(Sales[SDate],4),MID(Sales[SDate],4,2),LEFT(Sales[SDate],2))
 
Jori
 
If I answered your question, please mark it as a solution to help other members find it more quickly.

unfortunately it doesn't work.

jppv20
Solution Sage
Solution Sage

Hi @Nekkar ,

 

Do you really need this to work using DAX? Otherwise when you select a Column and go to Column tools you can see & edit the Data type here:

jppv20_0-1632831366494.png

 

Jori

 

If I answered your question, please mark it as a solution to help other members find it more quickly.

 

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Kudoed Authors