Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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?
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
65 | |
63 | |
52 | |
37 | |
36 |
User | Count |
---|---|
82 | |
66 | |
61 | |
46 | |
45 |