Suppose I have a date table that filters product and product history tables. And then I try to add a link between product and product history (m:m on the name column in both tables), then Power BI doesn't allow me to add an active link (Or make a link active after adding) since there would be ambiguity introduced.
But if I add the inactive relationship and then create a mesure using DAX CALCULATE with USERELATIONSHIP between product and product history tables,
CALCULATE (
SUMX (
PRODUCT_CALLS,
SUMX ( RELATEDTABLE ( PRODUCT_HISTORY ), PRODUCT_HISTORY[PRODUCT_USAGE] )
),
USERELATIONSHIP ( PRODUCT_CALLS[NAME], PRODUCT_HISTORY[NAME] )
)
Does this result in an AND filter of the product usage table (that is - filter from date AND product tables). Or does power bi randomly choose whether the filter is from date table or the product table?
In the above formula if I don't use CALCULATE, how would RELATEDTABLE get evaluated? As there is no link, how would it get evaluated?