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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
vjnvinod
Impactful Individual
Impactful Individual

Coloumn Measure

Experts

 

I have this formula as my coloumn

AWD_Days = DATEDIFF('Pipeline Extract'[AnticipatedWinDate],TODAY(),DAY)
 
I need to change this to "Today-Anticipatedwindate", i tried changing by myself like below but its not working for me
AWD_Days = DATEDIFF(TODAY(),DAY,'Pipeline Extract'[AnticipatedWinDate])
1 ACCEPTED SOLUTION
vivran22
Community Champion
Community Champion

@vjnvinod 

 

What are you trying to achieve? What is the output you are looking for? Can you share some sample example?

 

As per your definition ( Today() - Ancticpated Date), your formula should be: 

 

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

 

 

Regards,
Vivek

If it helps, please mark it as a solution

Kudos would be a cherry on the top 🙂

https://www.vivran.in/

View solution in original post

2 REPLIES 2
v-alq-msft
Community Support
Community Support

Hi, @vjnvinod 

 

I assume that you have wrong understanding of DateDiff function. It returns the count of interval boundaries crossed between two dates.

 

 

 

DATEDIFF(<start_date>, <end_date>, <interval>)  

 

 

 

'start_date' and 'end_date' are all scalar datetime value. 'interval' means the interval to use when comparing dates. For further information, you may refer to the following link.

https://docs.microsoft.com/en-us/dax/datediff-function-dax

 

Please show me your expected result. Thanks.

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

vivran22
Community Champion
Community Champion

@vjnvinod 

 

What are you trying to achieve? What is the output you are looking for? Can you share some sample example?

 

As per your definition ( Today() - Ancticpated Date), your formula should be: 

 

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

 

 

Regards,
Vivek

If it helps, please mark it as a solution

Kudos would be a cherry on the top 🙂

https://www.vivran.in/

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.