Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
RobWalker
New Member

Handling different dimensional granularities in Power BI

Hi all,

 

A general modelling problem and would just like to understand how this is commonly approached in Power BI.

 

As an example, I have a sales fact table and to keep it simple it just has a sales amount and a date.  The date key joins to a calendar dimension that has the granularity of day.  All good.

 

However, if i have another fact table that is the level of month key and i join this to the same calendar dimension i presume i will get double counting i.e. month key multipled the days in a month?

 

Do i just need to create another calendar dimension that is aggregated to month instead of day and join to that or is there another technique that should be applied instead?  Without naming them, another vendor has a solution where the dimension table will group itself up to the appropriate granularity first and then do the join but i can't see an equivalent in Power BI or am i missing something?

 

Any advice on how you would approach this?

 

Many thanks

 

 

2 REPLIES 2
Alex_Serebr
Frequent Visitor

In the second fact table (month level) just create calculated column First (or Last) DayOfMonth and use this column for relationship with your calendar table. It would treat all the events in your second fact table as happened in the same (first or last, depending of your business scenario) day of month

Thanks Alex, thats a great solution.  So effectively ignore the month key concept and just focus on first day or last day of month as the month key proxy.

 

It does highlight a flaw in my rather simple example though.  If i change the scenario slightly:

 

I have a fact table at the granularity of product id and i link this to the product dimension at the same level of granularity (product id) that works again like calendar date would.  But if i have a fact table at the level of product parent category and i link it product dimension, how should that be handled?  Unlike date i don't have first or last function to use in that scenario.

 

Many thanks

 

Rob 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.