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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors