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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
tmanohara
Regular Visitor

"Allow unrestricted measures in DirectQuery mode" is not there !!!

Screenshot from 2023-03-29 16-10-43.pngI'm using DirectQuery as data connectivity mode in my project. But I want to use some functions like FILTER, CALCULATE, LOOKUPVALUE etc. 

I can use them when I'm creating Measures. But I want to use them when creating Columns.  

 

I'm Using,

Power Bi Desktop Version: 2.112.1161.0 64-bit (December 2022) 

1 ACCEPTED SOLUTION
v-yueyunzh-msft
Community Support
Community Support

Hi , @tmanohara

According to your description, you want to use the FILTER, CALCULATE, LOOKUPVALUE in Direct query.

Sorry for this function can not be used to create a column in the Direct Query mode :

These function is not supported for use in DirectQuery mode when used in calculated columns or row-level security (RLS) rules.

For this , you can refer to the Dax document to check if some function can be used  to create a column in the Direct Query mode.

The main reason is that under Direct Quey mode, only DAX statements that support query folding (converting DAX statements into the language of the data source, so as to send the corresponding query to the data source in real time) can be used, which is also the limitation of Direct Query mode.

 

For more information, you can refer to :
LOOKUPVALUE function (DAX) - DAX | Microsoft Learn

Query folding guidance in Power BI Desktop - Power BI | Microsoft Learn

 

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

View solution in original post

2 REPLIES 2
v-yueyunzh-msft
Community Support
Community Support

Hi , @tmanohara

According to your description, you want to use the FILTER, CALCULATE, LOOKUPVALUE in Direct query.

Sorry for this function can not be used to create a column in the Direct Query mode :

These function is not supported for use in DirectQuery mode when used in calculated columns or row-level security (RLS) rules.

For this , you can refer to the Dax document to check if some function can be used  to create a column in the Direct Query mode.

The main reason is that under Direct Quey mode, only DAX statements that support query folding (converting DAX statements into the language of the data source, so as to send the corresponding query to the data source in real time) can be used, which is also the limitation of Direct Query mode.

 

For more information, you can refer to :
LOOKUPVALUE function (DAX) - DAX | Microsoft Learn

Query folding guidance in Power BI Desktop - Power BI | Microsoft Learn

 

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

That is very informative. Thank you @v-yueyunzh-msft  

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors
Top Kudoed Authors