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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
PriyankaA905
Frequent Visitor

Countrows in Report Server -Direct Query Mode

Hi, we encountered with the following error while using the balance bucket formula:

Bal_Bucket =
CALCULATE(DISTINCTCOUNT('MISREP.UTK_T_LIAB_AVG_BAL_NEW'[IACLINK_ACTUAL_ACNUM]),
FILTER( VALUES('MISREP.UTK_T_LIAB_AVG_BAL_NEW'[CURRENT_BALANCE_ASON]),
COUNTROWS(
FILTER(Bucket,
'MISREP.UTK_T_LIAB_AVG_BAL_NEW'[CURRENT_BALANCE_ASON]>= Bucket[MIN]
&& 'MISREP.UTK_T_LIAB_AVG_BAL_NEW'[CURRENT_BALANCE_ASON]<Bucket[MAX]))
> 0))

 

 

PriyankaA905_0-1651564822932.png

Also we discovered that there is no option as "Allow unrestricted measures in DirectQuery mode" in Report Server.

What is the solution for the above problem?

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

Hi @PriyankaA905 ,

I also could not find it on Power BI Desktop not for version.According to the responses in other threads, that option was modified in 2018. Refer:https://community.powerbi.com/t5/Desktop/What-Happened-To-quot-Allow-unrestricted-measures-in-Direct...  

In addition, this feature is not used to break the 1-million-row limit in Direct Query, but rather the one-million-row limit for returning data when using DirectQuery still exists for the limitations are placed on DAX expressions allowed in measures, as you can see here:

https://www.eugenechiang.com/2019/07/11/power-bi-import-vs-directquery/ 

vluwangmsft_0-1652341619661.png

 

vluwangmsft_0-1651806286191.png

version:

vluwangmsft_1-1651806350057.png

 

 

Can you find this function in your Desktop?

In addition, the function is not described in the official article.refer:

https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-use-directquery 

 

Best Regards

Lucien

View solution in original post

1 REPLY 1
v-luwang-msft
Community Support
Community Support

Hi @PriyankaA905 ,

I also could not find it on Power BI Desktop not for version.According to the responses in other threads, that option was modified in 2018. Refer:https://community.powerbi.com/t5/Desktop/What-Happened-To-quot-Allow-unrestricted-measures-in-Direct...  

In addition, this feature is not used to break the 1-million-row limit in Direct Query, but rather the one-million-row limit for returning data when using DirectQuery still exists for the limitations are placed on DAX expressions allowed in measures, as you can see here:

https://www.eugenechiang.com/2019/07/11/power-bi-import-vs-directquery/ 

vluwangmsft_0-1652341619661.png

 

vluwangmsft_0-1651806286191.png

version:

vluwangmsft_1-1651806350057.png

 

 

Can you find this function in your Desktop?

In addition, the function is not described in the official article.refer:

https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-use-directquery 

 

Best Regards

Lucien

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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