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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
darkmetrics
Helper I
Helper I

How to construnct relationship between tables in the most correct way?

Good afternoon!

I have 3 tables in my Power BI report:

daily sales table (something like this)

darkmetrics_0-1663570850527.png

monthly sales plan table

darkmetrics_1-1663570879427.png

and dimDates table 

darkmetrics_2-1663570941074.png

I want to make a chart like this:

darkmetrics_3-1663570961133.png

I think I will aggregate daily fact sales into monthly fact sales with a simple measure. But what is the best way to build relationships between the tables above to construnct the chart I want?

1 REPLY 1
davehus
Memorable Member
Memorable Member

Hi @darkmetrics ,

 

In powerquery, if you a create a column with Date.EndofMonth on date to get the end of month. Then use group by to summarize the data using the end of month column , fact_sales. Join both the daily sales and sales plan to the date table and you should get the desired outcome.

Hope this helps.

 

Did I help you today? Please accept my solution and hit the Kudos button.

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.