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
shamsul
Regular Visitor

How to calculate no. of days for an employee if i have names dates in a table

 
6 REPLIES 6
shamsul
Regular Visitor

Hi @Idrissshatila I have two tables, one with Employee Name and Employee code and other with Employee code,dates, amount and other detaitails. I want to create a new column which can show which employee worked for how many days so i can calculate earing per day of an employee.

 

 

@shamsul,

 

Okay so you go in the second table and you create a new column as the following

 

Number of days =
DATEDIFF ( startingDate, TODAY (), DAY )

 

this new column will give you number of days for each row between the date that in in the table and today. Then you can visualise it with employee name.

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

 

Follow me on Linkedin

 

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




@Idrissshatila Expression.Error: The name 'DATEDIFF' wasn't recognized. Make sure it's spelled correctly.

@shamsul, can you show me the formula you wrote without showing any sensitive data please?

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

 

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




@Idrissshatila table 1

employee idnamepayroll_enrollment_id
4Karan14
325RANI.S2612
326SWETHA.T2545
327MEENAKSHI.S2453
329MANGALESWARI.S2517
332A.R2118
334VASANTHI.R2089
337MUTHURAKKU.M2198
339MUTHULAKSHMI.S2481
340GIRIJA2649
345MAHALAKSHMI.S2711
346MUTHULAKSHMI.P2419
347RAJESWARI.K524
348VANITHA.C2366
349R.SUSILA518
Idrissshatila
Super User
Super User

Hello @shamsul ,

 

Can you provide more details so we could help you ?

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

 

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




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.