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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
vjnvinod
Impactful Individual
Impactful Individual

Days between dates not working

hi

Below is what my formula for calculating days

days = 'Pipeline Extract'[AnticipatedWinDate] -(TODAY())
 and i am getting output like below, not sure whats wrong
i was expecting a output showing the number of days
 
Capture.PNG
1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

Hi @vjnvinod 

also you could try DATEDIFF() function

Column = DATEDIFF('Pipeline Extract'[AnticipatedWinDate],TODAY(),DAY)

 

do not hesitate to give a kudo to useful posts and mark solutions as solution


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

6 REPLIES 6
az38
Community Champion
Community Champion

Hi @vjnvinod 

also you could try DATEDIFF() function

Column = DATEDIFF('Pipeline Extract'[AnticipatedWinDate],TODAY(),DAY)

 

do not hesitate to give a kudo to useful posts and mark solutions as solution


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
vjnvinod
Impactful Individual
Impactful Individual

@az38 

 

sorry, i thought it worked but, its giving me wrong output, i have used below and see what it is doing

 

AWD_Days = DATEDIFF('Pipeline Extract'[AnticipatedWinDate],TODAY(),DAY)
 
Capture.PNG
vjnvinod
Impactful Individual
Impactful Individual

@az38 

 

Actually if we can reverse this, it will give me the right output

Can you give me Today- anticpatedwindate

 

Anonymous
Not applicable

Just do this. No need for DateDiff in this scenario. + Numbers are in the future, - in the past. 

 

 

Date.PNG

vjnvinod
Impactful Individual
Impactful Individual

worked like a charm

Anonymous
Not applicable

You have to change the Data Type to whole number. 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors