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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Trying to create [estimated training days] column

I'm trying to either to create a calculated column or a DAX for a column called [estimated training days] which will be using values from two different columns. 

The first column will be the [entry start date] which contain the values of the start date in this format DD/MM/YYYY 
and the second column will be the [duration] which contain the values of the number of days that were allow for each course in a format of integer.

Right now I'm trying to add another column into my visualization to show to estimate date to complete the training by adding the values from [entry start date] and [duration] together. However, I don't think I could just simply add DD/MM/YYYY with an Integer. Please help me figure this out.

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

Are these 2 tables related to eachother by some common column?

If yes then modify calculation as follows:

dateTimeMerged = Table1[entry start date] + RELATED(Table2[duration])

 

If tables are not related then create relationship between them.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

View solution in original post

7 REPLIES 7
Pragati11
Super User
Super User

Hi @Anonymous ,

 

You can try creating a caluclated column as follows:

 

dateTimeMerged = Table1[entry start date] + Table1[duration]

 

Replace Table1 with your tablename.

 

Then change the above column's format to DATETIME under Modelling tab.

 

Thanks,

Pragati

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

Hi @Pragati11 

When I try to look for [entry start date] it wasn't in the list. I am not sure if it has anything to do with the icon.

 
 

It has a calendar icon.

 

image.png

Hi @Anonymous ,

 

Every date column in Power BI becomes a hiererchy by default. It should not affect the calculation.

Click on the arrow you see a date hierarchy.

 

Did you try the dax I suggested?

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

Hi @Pragati11 
I have tried your DAX and it does not work because I can only use the measure and I don't know why. when I type the name of my table the only thing that i could see were my measures not the other column

Hi @Anonymous ,

 

Are you creating a caluclated column or measure?

Create calculated column. It will show you table columns.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

I see. I was trying to create a measure that's why it doesn't show.

It works now when I try to create the calculated column. However, I ran into another problem

dateTimeMerged = Table1[entry start date] + Table1[duration]
entry start date and duration is in a different tables. Is there a way to make it works?

Hi @Anonymous ,

 

Are these 2 tables related to eachother by some common column?

If yes then modify calculation as follows:

dateTimeMerged = Table1[entry start date] + RELATED(Table2[duration])

 

If tables are not related then create relationship between them.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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