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
Anonymous
Not applicable

Ambiguity between tables in data model

Say I have the following data model:

xyz123_0-1637834411955.png

 

The idea is to build three slicers at report level - Organization, Customer and Department.

When filtering data by Organization, the Customer and Department slicers should show the results regarding the Organization values that are selected on its slicer. That should then filter the fact tables results by intersecting the results of the Customer and Department values.

 

It seems that Power BI does not allow for the activation of the relationship between DIM_ORGANIZATION and DIM_DEPARTMENT because that would introduce ambiguity:

xyz123_1-1637834659438.png

 

Is there any way to achieve what I need by redesigning my model? Or is the model valid and I should focus on reaching a solution based on DAX or report level functionalities?

1 ACCEPTED SOLUTION

@Anonymous , If you are looking to filter those in slicer. Create a measure in fact

 

countrows( Fact_sales) + countrows( Fact_order)

 

And use that in the visual level filter of these slicers and check for non-blank values

you can use that in other visuals too, as per need

 

refer

https://www.youtube.com/watch?v=cyOquvfhzNM

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

@amitchandak 
When you write "join directly" do you mean something like this?

xyz123_0-1637837846169.png

 

Having this design would not filter Customer and Department values when using the Organization slicer.

@Anonymous , If you are looking to filter those in slicer. Create a measure in fact

 

countrows( Fact_sales) + countrows( Fact_order)

 

And use that in the visual level filter of these slicers and check for non-blank values

you can use that in other visuals too, as per need

 

refer

https://www.youtube.com/watch?v=cyOquvfhzNM

amitchandak
Super User
Super User

@Anonymous , You are having two path to reach a Fact like sales from Organization. Power bi need only one path.

 

So either merge ognizations with both tables. Or, if there is a column in fact where it join directly then do not join with dimension. Join with fact

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.