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 7923041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T17:10:25+00:00 2026-06-03T17:10:25+00:00

In a windows Server 2008, using SQL server 2005, Visual Studio and SQL Server

  • 0

In a windows Server 2008, using SQL server 2005, Visual Studio and SQL Server Analysis Services i created an OLAP Cube.

The scenario is a typical store with sell products, customer and agents.

The cube is made by a fact table tblVendite (sell data) and dimensions based on sql views.

NOTE: I tried embed the screenshot here but they will resized and will not clear so i posted them in a safe site to view it:

SCREENSHOT: stucture of the cube

  • FACT TABLE tblVendite (sell) > PK: CdArticolo (IDProduct)
  • DIMENSION Prodotti (produtcs)
  • DIMENSION Calendario (calendar)
  • DIMENSION Agenti (agents)
  • DIMENSION Clienti (customer)

Browsing the cube with basic filters as calendar, customer/agent, products, brand … all work fine

Now i need to provide a new feature as:
Comparing the “top sell brand” of all company with the sell of each agent to see how he sell those brand

So i did a new table and the related view: vwMarcheOrd (top sell brand)

The table top sell brand is pre-populated by a sp and contain 1 record for each brand (CdMarca – Position – Description order by Position)

NOTE: from vwMarcheOrd i cant have direct link to the fact table because the PK is CdMarca and it’s not present so i need to “bridge” the view Products by CdMarca and get the CdArticolo to link the fact table

Dimension and the attributes for Brand and Top Brand:

SCREENSHOT: cube dimension

BROWSE THE CUBE AND THE PROBLEM

Adding the dimension Brand(1) to the row fields the result is correct but if i add the Top Brand(2) is incorrect and many brand are missing (but they exist)

SCREENSHOT: browse Top Brand

So my questions are 2:

  1. What i missing or wrong or misunderstand with the Top Brand Dimension ?
  2. How i can display all records of Top Brand in the row fields even if the agent didnt sell any item of that brand (blank row) ?

p.s. i tried also make a dimension based only with vMarcheOrd and then create a Referenced Relationship with the Product table to bridge CdMarca > CdArticolo > Fact Table but the result are the same

Thanks in advance who can really help me to solve this problem that block me since many days

  • 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-03T17:10:27+00:00Added an answer on June 3, 2026 at 5:10 pm

    From what I understand, it looks like the top brand could change over time. This means that you would need to somehow track that over time. In my opnion, the easiest way to do that would be to add the TopBrandKey to the fact table and join the top brand dimension directly to the fact table. This way the time tracking is done for you in the fact table. As new records come in, you would look up the key for the top brand and add that to the fact table. I don’t think the way you have it would work because the product which was sold would not have the brand which is the top brand (those are two different things).

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

Sidebar

Related Questions

I am developing an Windows pplication(using Visual Studio 2008,Sql server 2005). I have to
I have been using windows XP. I installed visual studio 2008 and sql server
I am using in built sql server 2005 which comes with visual studio 2008
I am using ASP.NET MVC2 in Visual Studio 2008. I believe the SQL Server
Background: I'm using SQL Server Management Studio 2008 and I have a query window
I recently migrated a database from sql server 2005 to 2008 on windows server
I am using SQL Server 2008 on Windows Server 2008. I find the temp
I am using SQL Server 2008 Enterprise on Windows Server 2008. I want to
I am using SQL Server 2008 Enterprise on Windows Server 2008 Enterprise. In the
I am using SQL Server 2008 Enterprise with Windows Server 2008 Enterprise. I have

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.