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
dilkushpatel
Helper III
Helper III

DATEDIFF_BIG Azure DW Direct Query

Hi,

I have used DATEDIFF and I think it is getting translated to DATEDIFF_BIG on backend and there it is giving error that function is not recognised.

As per online docs function is available in SQL Azure DW so not sure why the error.

 

It is a direct query connection to SQL Azure DW.

 

Thanks,

Dilkush

6 REPLIES 6
Greg_Deckler
Community Champion
Community Champion

See the thread here;

http://community.powerbi.com/t5/Desktop/DATEDIFF-error-in-DirectQuery-against-SQL-database/td-p/2761...

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

So this is a bug which is supposed to be fixed correct?

@Greg_Deckler

Hmm, well, I don't know about that or whose responsibility it would be to fix that issue, the Power BI team or the Azure DW team. Your best bet is to log an Issue here in the Power BI community and see what feedback you get. I didn't see an existing issue out there when I checked:

 

https://ideas.powerbi.com/forums/360879-issues

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler@dilkushpatel I got the information from our senior engineers that it is an error in the documentation: the function DATEDIFF_BIG is not actually supported in Azure SQL DW. So, that is the reason why you get that error message. A defect is issued to fix the documentation issue, however, no ideas about when this function is going to be available in Azure SQL DW. Thanks for reporting this issue!

@Vicky_Song

I think main problem that I see is Power Bi is translating DATEDIFF function tp DATEDIFF_BIG which is not supported in Azure DW or older versions of SQL

So I guess that needs to change as data source won't be SQL 2016 on prem always.

 

Let me know If I'm wrong.

 

-Dilkush

@dilkushpatel, could you please offer more information about on which steps the DATEDIFF function is converted to DATEDIFF_BIG?

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