Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Is there any way too use DATEDIFF function while creating calculated column using Direct query mode?
Or any other way to calculate difference between two dates in calculated column using Direct query mode?
Solved! Go to Solution.
Hi @Anonymous
Based on my test,it is supported to add datediff calculated column in Direct query mode, plz see below capture:
Hi @Anonymous
Based on my test,it is supported to add datediff calculated column in Direct query mode, plz see below capture:
@Anonymous , datediff should work as a column
refer
or as meausre
sumx(Table,Datediff([Date1],[Date2],day) ) // you can use aggreagation of your choice
refer as measure with row context
This simply does not work. The calc as columns returns:
OLE DB or ODBC eror: We couldn't fold the expression to the data source. Please try a simples expression
Isn't this expression simple enough for PowerBI to handle?