Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
i write a calculate column as below:
Solved! Go to Solution.
The error occurs because DirectQuery mode in Power BI has restrictions, and the DATE function cannot be used in calculated columns. DirectQuery pushes calculations to the data source, and some DAX functions (like DATE, TIME, DATEVALUE) cannot be translated into SQL queries.
please try the dax:
last_es_call_log_date =
VAR DateValue = es_request_loans[esn.send_notification_at] + TIME(8, 0, 0)
RETURN INT(DateValue)
The best approach is to compute this column in your data source to keep the model in DirectQuery mode.
Hi @pennyhoho117, thank you for reaching out to the Microsoft Fabric Community Forum.
There isn't any official list detailing every unsupported function, but several commonly used functions are known to have restrictions or are unsupported in DirectQuery mode.
Please check out the below document for your reference:
DirectQuery in Power BI - Power BI | Microsoft Learn
If this helps, please consider marking it 'Accept as Solution' so others with similar queries may find it more easily. If not, please share the details.
Thank you.
Hi @pennyhoho117 , Hope your issue is solved. If it is, please consider marking the answer 'Accept as solution', so others with similar issues may find it easily. If it isn't, please share the details.
Thank you.
Hi @pennyhoho117 , Hope your issue is solved. If it is, please consider marking the answer 'Accept as solution', so others with similar issues may find it easily. If it isn't, please share the details.
Thank you.
Hi @pennyhoho117 , Hope your issue is solved. If it is, please consider marking it 'Accept as solution', so others with similar issues may find it easily. If it isn't, please share the details. Thank you.
The error occurs because DirectQuery mode in Power BI has restrictions, and the DATE function cannot be used in calculated columns. DirectQuery pushes calculations to the data source, and some DAX functions (like DATE, TIME, DATEVALUE) cannot be translated into SQL queries.
please try the dax:
last_es_call_log_date =
VAR DateValue = es_request_loans[esn.send_notification_at] + TIME(8, 0, 0)
RETURN INT(DateValue)
The best approach is to compute this column in your data source to keep the model in DirectQuery mode.
Hi @pennyhoho117 , thank you for reaching out to the Microsoft Fabric Community Forum.
last_es_call_log_date =
VAR DateValue = es_request_loans[esn.send_notification_at] + TIME(8, 0, 0)
RETURN
DATEVALUE(DateValue)
If this helps, please consider marking it 'Accept as Solution' so others with similar queries may find it more easily. If not, please share the details.
Thank you.
Besides Date function, may i know the DAX function/ format fields/M functions list that not allowed in Direct Query? Thanks
Hi , thank you for reaching out to the Microsoft Fabric Community Forum.
Below are some of the functions that do not work in Direct Query mode.
DATE Function: This function is not allowed in Direct Query mode.
PATH Function: This function cannot be used in Direct Query models.
LOOKUPVALUE Function: Not supported in Direct Query.
SUMX Function: Not supported in Direct Query.
CALCULATE Function: Limited support in Direct Query.
EARLIER Function: Restricted in Direct Query.
FILTER Function: Limited support in Direct Query.
ALL Function: Restricted in Direct Query.
ALLSELECTED Function: Restricted in Direct Query.
ALLEXCEPT Function: Restricted in Direct Query.
If this helps, please consider marking it 'Accept as Solution' so others with similar queries may find it more easily. If not, please share the details.
Thank you.
any power bi documnet listed all Dax, M function that not allowed in Direct query?
Hi @pennyhoho117, thank you for reaching out to the Microsoft Fabric Community Forum.
There isn't any official list detailing every unsupported function, but several commonly used functions are known to have restrictions or are unsupported in DirectQuery mode.
Please check out the below document for your reference:
DirectQuery in Power BI - Power BI | Microsoft Learn
If this helps, please consider marking it 'Accept as Solution' so others with similar queries may find it more easily. If not, please share the details.
Thank you.
User | Count |
---|---|
47 | |
32 | |
30 | |
27 | |
26 |
User | Count |
---|---|
56 | |
55 | |
36 | |
33 | |
28 |