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

  • SEARCH
  • Home
  • 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 7051615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:17:05+00:00 2026-05-28T03:17:05+00:00

So I have a dimensional database for shipments: A shipment contains many packages. A

  • 0

So I have a dimensional database for shipments:

A shipment contains many packages.
A package contains many charges.

Because this is dimensional and the charges are the data I’m most interested in, I’ve flattened the 3 tables and their many to one relationships into a single charges fact table. Here’s a quick snapshot of a single shipment that contains two packages each weighing 1 lb.

enter image description here

In order to make package weight queryable I’ve needed to push it down to the charge grain. This causes problems with aggregation. A package weight of 1 lb applies to each package, and should result in 2 lbs for the shipment. I can’t find a way to aggregate the weight as a measure in this fashion. I’m very new to SSAS and OLAP and don’t really know what next to try. Any suggestions would be greatly appreciated.

  • 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-05-28T03:17:05+00:00Added an answer on May 28, 2026 at 3:17 am

    The problem is the way you have the data modeled. The lowest level of granularity of your (fact) table is "charge amount"…"package weight" amount is at a higher level of granularity (the Package Level).

    You have two options…

    1. In your ETL, you can allocate the 1 lbs across the different charge amounts for each package (see screenshot below). That way when you slice this fact table by Shipment or Package, you will see 2lbs or 1lbs, respectively.

      screenshot

    2. Pull the "package weight" field out of this fact table and put it in one where the granularity is at the package level.

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

Sidebar

Related Questions

I have a database full of two-dimensional data - points on a map. Each
I have a two dimensional array that I need to load data into. I
I have a two-dimensional array (of Strings) which make up my data table (of
I have some small sets of data from the database (mysql) who are seldom
I may have to store some i18n-ed data in my database using XML if
This is just an out of curiosity question. Let's say you have a database
I have data that I want to pull from a mySQL database and I
I have the following data which I want to save in my DB (this
I have a table in a database that contains a variety of paths to
I need to store 2 dimensional data, that is points (x,y) in a database.

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.