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

filtering of two fact tables

Hello, dear collegues

 

I got stucked with such problem:

 

I have a data-model with three simple dimension tables:

 

Areas { [Area] }

Products { [Product] }

Managers { [Manager], [Area & Product] }

 

And two simple fact tables:

 

Sales { [Area], [Product], [SalesFact] }

Plans { [Area], [Product], [SalesPlan] }

 

As you can see from the Managers table, [Manager] - is the combination of Area and Product (only one manager stands for one unique pair of area-product)

 

And I want

1) to use slicer on Manager [Manager], pick some manager, and get both of my fact tables filtered on products and areas which belong to that manager

2) another challange for me - when i have successfully picked manager and got filtered both fact tables, then I want to create the matrix and put Products[Product] or Areas[Area] in row area and Sales[SalesFact], Plans[SalesPlan] in values and get the correct results on it

 

How can i handle this? Thank you in advance

1 ACCEPTED SOLUTION
v-deddai1-msft
Community Support
Community Support

Hi @Serhii_Andr ,

 

You can create area&product column in both sales and plans table and create many to one relationship between them and manager table:

 Capture.PNG

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

View solution in original post

2 REPLIES 2
v-deddai1-msft
Community Support
Community Support

Hi @Serhii_Andr ,

 

You can create area&product column in both sales and plans table and create many to one relationship between them and manager table:

 Capture.PNG

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

amitchandak
Super User
Super User

@Serhii_Andr , Merge Area, product, and Manager unless they are needed separately.

 

Create a concatenated key

Key = [product] & "-" & [Area] in (manager(combined),  sales and plan)

Join these there and analyze with help from Manager

https://radacad.com/append-vs-merge-in-power-bi-and-power-query

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.