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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
AM_BSL
Frequent Visitor

Cannot filter in Analyze in Excel as a RLS user - Hybrid Table

Hi 

We are facing the below issue -

An unexpected error occurred (file 'xmvsquery.cpp', line 11083, function XMVSMeasure Validate

We are creating a dataset where 1 table is hybrid table (Sales Table) it has relation with CompanyCodes which has relation with User table ( which contains info related to userid and the companies they have access to e.g. user Alex has access to Company 0010,0020,0030)

Dynamic RLS has been implemented as Email = Userprincipalname()

The datamodel is as below-

 

AM_BSL_0-1676646399431.png

The end user Alex has viewer role and has read and build permission on dataset

Measure for Salesamount has been created as - Sum(SalesAmount)

While the end user analyze in excel - facing issue when Company Column from Sales table is dragged to  Filter pane of pivot table,

AM_BSL_3-1676646969205.png

AM_BSL_7-1676647514350.png

 

AM_BSL_6-1676647482148.png

 

it works fine when multiple values are selected 

AM_BSL_1-1676646847873.png

but when only one value is selected gives the below error -

AM_BSL_4-1676647047269.png

We are using Microsoft SQL Server 2019

our full SQL version is

AM_BSL_0-1676649425591.png

 

 

1 ACCEPTED SOLUTION
jaweher899
Impactful Individual
Impactful Individual

It looks like you are facing an issue with your Power BI dataset and the dynamic row-level security that you have implemented. The error message that you are seeing is related to the XMVSQuery component of the dataset.

To troubleshoot this issue, you can try the following steps:

  1. Check the data type of the Company column in your Sales table. Make sure that it matches the data type of the CompanyCodes table's CompanyCode column. If there is a mismatch, you can try changing the data type of the Company column to match the CompanyCode column.

  2. Check if the email address used in the dynamic RLS matches the user principal name of the end user. Make sure that the email address used in the RLS is the same as the email address used by the end user to log in to Power BI.

  3. Check if there are any missing or incorrect values in the CompanyCodes table. Make sure that all the company codes used in the Sales table have a corresponding entry in the CompanyCodes table.

  4. Try recreating the SalesAmount measure to see if it resolves the issue. You can also try creating a new measure using the DAX function SUMX to see if it resolves the issue.

  5. If none of the above steps resolve the issue, you can try refreshing the dataset or re-importing the data into the dataset.

View solution in original post

1 REPLY 1
jaweher899
Impactful Individual
Impactful Individual

It looks like you are facing an issue with your Power BI dataset and the dynamic row-level security that you have implemented. The error message that you are seeing is related to the XMVSQuery component of the dataset.

To troubleshoot this issue, you can try the following steps:

  1. Check the data type of the Company column in your Sales table. Make sure that it matches the data type of the CompanyCodes table's CompanyCode column. If there is a mismatch, you can try changing the data type of the Company column to match the CompanyCode column.

  2. Check if the email address used in the dynamic RLS matches the user principal name of the end user. Make sure that the email address used in the RLS is the same as the email address used by the end user to log in to Power BI.

  3. Check if there are any missing or incorrect values in the CompanyCodes table. Make sure that all the company codes used in the Sales table have a corresponding entry in the CompanyCodes table.

  4. Try recreating the SalesAmount measure to see if it resolves the issue. You can also try creating a new measure using the DAX function SUMX to see if it resolves the issue.

  5. If none of the above steps resolve the issue, you can try refreshing the dataset or re-importing the data into the dataset.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors