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
Anonymous
Not applicable

Type Mismatch error in MDX on PowerBI visual

I am struggling with the Type Mismatch error when I query the cube in SSAS. The MDX query is shown below:

WITH MEMBER [MEASURES].[TopNFilter] AS IIF( COUNT( EXISTING EXISTS( [DimClient].[Client].CURRENTMEMBER, TopNSet)) > 0, 1, -1) 
SELECT {​ [MEASURES].[Volume], [TopNFilter] }​ ON COLUMNS, {​TopNSet}​ ON ROWS FROM Cube

 when I query the cube it throw error message "Type Mismatch" . I followed the solution in the link below:  

Solved: TOPN using SSAS MD - Microsoft Power BI Community

but still get the same error.

Thanks

 

1 REPLY 1
v-alq-msft
Community Support
Community Support

Hi, @Anonymous 

 

I am not familiar with MDX. I'd like to suggest you go to SSAS forum which is more prefessional on this kind of problem.

 

Best Regards

Allan

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.