Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7921457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T16:35:29+00:00 2026-06-03T16:35:29+00:00

I am pretty new to SSAS, OLAP and MDX syntax. So I have this

  • 0

I am pretty new to SSAS, OLAP and MDX syntax.

So I have this MDX to query the cube by TSQL (by linked server to SSAS) and it works fine:

select * from openquery(GCUBE, 
'SELECT NON EMPTY { [Measures].[Valore] } ON COLUMNS, 
NON EMPTY {
( [Prodotti].[Top Marca].[Top Marca].ALLMEMBERS 
* [Prodotti].[Top Codice].[Top Codice].ALLMEMBERS 
* [Agenti].[Vw Agenti].[Vw Agenti].ALLMEMBERS
* [Calendario].[AnnoMese].[Mese].ALLMEMBERS 
* [Prodotti].[Ordinamento].[Ordinamento].ALLMEMBERS 
* [Prodotti].[Top].[Top].ALLMEMBERS )
}
DIMENSION PROPERTIES MEMBER_CAPTION
ON ROWS FROM ( SELECT ( { [Calendario].[Anno].&[2012] } )
ON COLUMNS FROM ( SELECT ( { [Agenti].[Vw Agenti].&[005] } )
ON COLUMNS FROM [Vendite])) WHERE (  [Calendario].[Anno].&[2012] )'
)

Well, the [Prodotti].[Top Marca] is a dimension based on a table with the 50 top selling brands and this MDX is filtered by a specific ID Agent [Vw Agenti] = 005.

The purpose of the query is to find out how the agent is selling the company’s 50 top selling brands.

The query works fine but there is one brand not sold by this agent and I need to show the empty row.

The figure below shows the missing record relative to the position (rank) 31.

MDX Query result

I understand the concept about NON EMPTY but I can’t find the right syntax to also show the empty record.

How should I modify the MDX?

I tried to remove NON EMPTY but I get a generic error:

Cannot execute the query against OLE DB provider "MSOLAP" for linked server "GCUBE"

Do I need to change the dimension Top Marca in the cube?

Thanks in advance to anyone who can help me or give the right tips to solve this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T16:35:30+00:00Added an answer on June 3, 2026 at 4:35 pm

    I’m not a specialist of SSAS/TSQL, but I would try a simple request first :

    SELECT 
    
    [Measures].[Valore]ON COLUMNS, 
    
    NON EMPTY [Prodotti].[Top Marca].[Top Marca].ALLMEMBERS ON ROWS 
    
    FROM ( SELECT { [Calendario].[Anno].&[2012] } ON COLUMNS 
      FROM ( SELECT { [Agenti].[Vw Agenti].&[005] } ON COLUMNS 
        FROM [Vendite] 
      )
    ) '
    

    Any way to run it without this TSQL stuff?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Pretty new to threading and I have this QList that the threads share between
Pretty new to Windows Azure. I've followed this tutorial: tutorial . It works perfectly
Pretty new to MVC and the like. I have a class the looks like
I am pretty new to PHP and MySQL and I just can't figure this
Pretty new to all this, so if I am going about my puzzle in
still pretty new to android I have to clone an iphone application. Im having
Im pretty new to REST but as far as i have gathered i understand
Pretty new to dependency injection and I'm trying to figure out if this is
Pretty new to the Magento e-commerce solution. Have it up and running for a
Pretty new to jquery/javascript, but proficient in html/css... I have a list of siblings

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.