Hi guys,<div>I am new to Mondrian, and first let me say, really sweet concept, leveraging this whole hypercube model for analytics. Also, nice, apt name. :) So I have a question that I hope someone can help me with. I have a fact table of product sales which I&#39;m extracting dimensions from. These products belong to categories, which is represented in a separate table product_categories which has two columns, product_id and category_id.</div>

<div><br></div><div>I would like to have &#39;categories&#39; as a dimension in the cube as well, but I&#39;m not sure how to achieve this since it&#39;s not in the fact table (only product_id is in the fact table, along with the sales, prices, dates etc.). Also since it is a &quot;dependent&quot; dimension in the sense that a product id uniquely determines the values of the &quot;category&quot; axis, it doesn&#39;t seem right to modify the fact table to include category_id. I think I am looking for something like this:</div>

<div><br></div><div>&lt;dimension&gt;</div><div>&lt;table = ?&gt;</div><div>use key product_id in sales_fact_table and maybe do some kind of join or use the corresponding category_id&#39;s in the product_categories table</div>

<div>&lt;/table&gt;</div><div>&lt;/dimension&gt;</div><div><br></div><div>Help would be appreciated!</div>
<div><br></div><div>Thanks,</div><div>-m</div><div><br></div>