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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

mdx construct that is not allowed on DirectQuery Models

Hello, I used the excel export function in PowerBi to create a view in Excel - I receive two errors:

MDX DirectQuery.PNG

 

1. MDX Error - see screenshot when adding a field - see screenshot

2. MDX Construct when adding the ActualsCD field - see screenshot

 

 

MDX DirectQuery II.PNG

 

Thank you - Ingmar

Status: New
Comments
v-haibl-msft
Microsoft Employee

@Ingmar

 

When a model is in DirectQuery mode, it can only be queried by using DAX. You cannot use MDX to create queries. This means that you cannot use the Excel Pivot Client, because Excel uses MDX.

Please refer to Client restrictions part in https://technet.microsoft.com/en-us/library/hh230898(v=sql.110).aspx

 

Best Regards,

Herbert