Forum Discussion

AM_BSL's avatar
AM_BSL
Frequent Visitor
3 years ago
Solved

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 Ta...
  • jaweher899's avatar
    3 years ago

    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.