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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

DATEDIFF not showing correctly

Hello, 

 

Very new to Power BI 😃

 

I've found the following way to show sum of days between in a table. I've added a colunm with the following: 

Days between = DATEDIFF('Table_query'[Month Raised (Date)].[Day],'Table_query'[Month Assigned To WD Team Member (Date)].[Day],DAY)
 
Seems to work except on 1 highlighted below, showing as -7. When is should be 24. Can anyone advise on what's gone wrong? 
 
 
NightingaleG3_0-1706803694469.png

Many Thanks 

1 ACCEPTED SOLUTION
mlsx4
Memorable Member
Memorable Member

Hi @Anonymous 

 

You're calculating difference between days (without taking into account anything else: month or year). Therefore: 8-15=-7

 

Try by removing the .[day] in your formula

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@mlsx4 Thank you that worked 😊

mlsx4
Memorable Member
Memorable Member

Hi @Anonymous 

 

You're calculating difference between days (without taking into account anything else: month or year). Therefore: 8-15=-7

 

Try by removing the .[day] in your formula

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors