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
browncp88
Frequent Visitor

Multiple Dimensions, Multiple Facts Data Model

Is it possible in Power BI to model multiple dimensions and multiple facts?

 

To simplify from first-principles, imagine I have two fact tables:

1) Stock Data Time Series (Asset Class, Date, Price to Earnings Ratio, +20 other Stock ratios)

2) Bond Data Time Series (Asset Class, Date, Yield to Maturity, +20 other Bond ratios)

 

and two dimension tables:

1) Asset Class MetaData (links to stock and bond data by asset class, or asset class index)

2) Date table (links to stock and bond data by date, or date index)

 

I have issues autodetecting these relationships, and get errors activating the relationships:

browncp88_0-1673292705831.png

 

I think this would be a standard schema for database normalization, so am curious if this is possible to model in power bi, or if I need to adjust the data model?  Ultimately, I intend to scale this to ~10 fact tables (1 per asset class) and two dimension tables.  

 

My goal is to get time series data to compare ratios across the two different fact tables on a single visualization (using the date table for common lin), rather than 2 separate tables as below:

 

browncp88_1-1673292899078.png

 

I know I can do this if I remove the asset class table and just link the two fact tables to the date dimension, but I also need assetclass dimension metadata pertaining to all fact tables (e.g., risk level) necessary for data visualization purposes.  

 

Any modeling advice would be appreciated (maybe I'm not thinking about this the right way), thank you in advance.

 

Thanks!

1 ACCEPTED SOLUTION
DataInsights
Super User
Super User

@browncp88,

 

Yes, you can model multiple dimensions and multiple facts. Create a relationship between each fact table and the dimension tables as shown below:

 

DataInsights_0-1673362310664.png

 

You can add as many fact tables as you need. In a visual, use fields from dimension tables and you'll be able to see measures for each fact table since the fact tables share dimension tables.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

2 REPLIES 2
DataInsights
Super User
Super User

@browncp88,

 

Yes, you can model multiple dimensions and multiple facts. Create a relationship between each fact table and the dimension tables as shown below:

 

DataInsights_0-1673362310664.png

 

You can add as many fact tables as you need. In a visual, use fields from dimension tables and you'll be able to see measures for each fact table since the fact tables share dimension tables.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Thanks, your graphic showed me the issue I was having - needed to have single direction cross filters rather than bi-directional, which was selected.  Appreciate the help!

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.