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
I_LOVE_POWER_BI
Helper III
Helper III

How to slice between fact tables with a dimension that is not available in one of the them

Dear community,

 

I believe I have a simple problem here, but I am just not far enough with my DAX skills yet, please help me out.

 

So what I want to do with a short fake example:

I_LOVE_POWER_BI_1-1622082435696.png

 

I have two fact tables: Price and Receipies. There is a column which is used in both (Ingredients), so I use a dimension table with unique values in the column ingredients to slice through both tables - so far so good.

 

However, now I want to use the column "Receipe" in my Fact_Receipes table in order to slice my table as shown in the "Goal Report". Obviously, the filter direction goes from Dim_Ingredients to the fact tables, therefore the filter doesn't work.

 

As I learned bi-directional filtering isn't the best option since it could lead to ambiguity (and this model is only an example, the actual one is more complex). So I think about CROSSFILTER or something, but have no experience how to build it up. 

 

Thanks for your support! 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@I_LOVE_POWER_BI , Create measure on Receipies say

M1= countrows(Receipies) 

 

and use that as visual level filter

 

M1 is not blank and check if that can help

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@I_LOVE_POWER_BI , Create measure on Receipies say

M1= countrows(Receipies) 

 

and use that as visual level filter

 

M1 is not blank and check if that can help

@amitchandak I gave it another try and it actually works! However I do not understand why...could you explain how the Power PI engine is doing it? Thanks!

@amitchandak thanks a lot for your reply! It works in regards that I now only see those entries that are available in my receipe fact table. However, my goal is to slice based on the column receipe, e.g. by "Apple Cake" - therefore the solution you suggested is not enough. Therefore I guess the solution is a bit more complex... 😞 Thanks again for more ideas!

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.