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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
larbpup
Frequent Visitor

Help with Crossfiltering across multiple tables

Hello,

I have a fact table of forecasted sales orders and a table of part numbers with corresponding production rates. I would like to calculate the amount of total production hours needed per month by multiplying the forecasted sales amount by the part work rate. Unfornunately I am not able to achieve this without setting all my relationships to bidirectional, which will not be useful going forward as I would like to add in additional tables and info for drilling down, etc.

I am attempting to use measures with CROSS FILTER, but I am not very knowledable with it. How would I get the cross filter to go across multiple tables?

Thanks.

 

Ex: only between two tables.

ForecastedBacklog = CALCULATE([Backlog_Units_Total],CROSSFILTER(DateDimension[Date],SalesOrder_Backlog[SchedDate],BOTH))



Ideal output (MonthYear col is from the date dimension table):

larbpup_3-1685118692041.png

 

Relationships:
DateDimension -> SalesOrder_Backlog by Date to SchedDate

SalesOrder_Backlog ->PartTable by PartId

PartTable ->PartWorkRate by PartId
PartWorkRate -> Workcenter by Workcenter Id 

WorkCenter -> Line by an index that I derive from a lookup table.

 

larbpup_1-1685118387597.png

 

 

1 ACCEPTED SOLUTION
some_bih
Super User
Super User

Hi @larbpup I personally do not use bidirectioanal relationship as ambigious result could emerge, I rather rework model if possible. Still, with my little knowledge of this area, could you please check part ,BOTH)) in your crossfilter function. Maybe this could help in debuging your wanted output, give a try to change this part.  Great link for crossfilter is below, with other usefull link

 

https://dax.guide/crossfilter/ 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






View solution in original post

1 REPLY 1
some_bih
Super User
Super User

Hi @larbpup I personally do not use bidirectioanal relationship as ambigious result could emerge, I rather rework model if possible. Still, with my little knowledge of this area, could you please check part ,BOTH)) in your crossfilter function. Maybe this could help in debuging your wanted output, give a try to change this part.  Great link for crossfilter is below, with other usefull link

 

https://dax.guide/crossfilter/ 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.