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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Super User
Super User

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!:
Power BI Cookbook Third Edition (Color)

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!:
Power BI Cookbook Third Edition (Color)

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.