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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply

Seniority in month

Hello friends,

I want to calculate the seniority in month for our associates. I went through the age function in Power Query but it only have Days, Year which is not worth for me. As I've a large dataset I do not want to do in PowerPivot.

 

Thanks for your precious help.

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @FranckGbadamass 

 

You can add a custom column with

Duration.TotalDays([End Date] - [Start Date])/30

vjingzhang_0-1668680619893.png

I calculate the total days between two dates and divide it by 30 assuming that a month has 30 days. 

 

If this is not what you want, can you provide some sample data and expected output to explain the requirement more clearly?

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

 

View solution in original post

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @FranckGbadamass 

 

You can add a custom column with

Duration.TotalDays([End Date] - [Start Date])/30

vjingzhang_0-1668680619893.png

I calculate the total days between two dates and divide it by 30 assuming that a month has 30 days. 

 

If this is not what you want, can you provide some sample data and expected output to explain the requirement more clearly?

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

 

BA_Pete
Super User
Super User

Hi @FranckGbadamass ,

 

Can you provide some anonymised example data, and clear examples of what your required outcome is please?

 

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/2867986 

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors