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

Unrelated Slicer to Filter Fact Tables

Hi, 

I have a visual (profit and Loss Statement) which draws data from 2 fact tables. One transacction fact table has all revenue and expense transations with sales site/office/group details. It has a column for sales material. The other fact table is for allocation which is allocating by volumn at site level. I have a site demention table which connects to both fact tables. 

I want to add a slicer for sales material, which is at transation level. The transaction table is filtered correctly but the allocation table cannot be filtered. The visual shows 100% of the allocation. What can I do to filter out all allocation amounts while the material slicer is unrelated to the allocation table? 

 

Thank you very much for your helps,

Jeff

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , if you have the material in that table and it is available in the table you can use

https://www.sqlbi.com/articles/propagate-filters-using-treatas-in-dax/

 

or get material and want to filter site in table 2

 

measure  =

var _tab = summarize(allselected(Table1), Table[Site]) // site can come from Dim too. with allselected to table 

return

calculate(Sum(Table2[Value]) , Filter(Table2, Table[Site] in _tab) )

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , if you have the material in that table and it is available in the table you can use

https://www.sqlbi.com/articles/propagate-filters-using-treatas-in-dax/

 

or get material and want to filter site in table 2

 

measure  =

var _tab = summarize(allselected(Table1), Table[Site]) // site can come from Dim too. with allselected to table 

return

calculate(Sum(Table2[Value]) , Filter(Table2, Table[Site] in _tab) )

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.