I have (simplified) 2 lookup tables (Requisitions and Departments) and a fact table (PurchaseOrders). I need to find who the requisitioners are for each department that created a PO for a particular vendor, with the Requesters field in the Requisitions table.
Requisitions is linked to orders by PO#_Line. Departments is linked via Dept field in each table.
Normally in my pivot table I would drag Requisition[Requester] to the measure and be done. It works for departments. But I'm getting all possible requisitioners for each department... the filters on the PurchaseOrders table aren't applying to the Requisition table. I suspect this is because the Requisition <-> PurchaseOrders relationship is 1:1.
So my next thought is to pull Requisition[Requester] into the PurchaseOrders table into a calculated column. But because the relationship is 1:1 I can't use =RELATED(Requisition[Requester]), I have to use RELATEDTABLE. And there's the question. If I wanted a numeric value I can use SUMX etc. and provide RELATEDTABLE(Requisition) as the table parameter. But since I want the text value of the requester I'm not sure how to tweak the DAX to pass RELATEDTABLE as a parameter in VALUES.
Since the tables are 1:1 related I'm not sure about the performance hit if I were to use PowerQuery to add the Requisitions columns to the PurchaseOrder table - the PO table is millions of rows and 30+ columns already.
Thanks for your suggestions!
Requisitions is linked to orders by PO#_Line. Departments is linked via Dept field in each table.
Normally in my pivot table I would drag Requisition[Requester] to the measure and be done. It works for departments. But I'm getting all possible requisitioners for each department... the filters on the PurchaseOrders table aren't applying to the Requisition table. I suspect this is because the Requisition <-> PurchaseOrders relationship is 1:1.
So my next thought is to pull Requisition[Requester] into the PurchaseOrders table into a calculated column. But because the relationship is 1:1 I can't use =RELATED(Requisition[Requester]), I have to use RELATEDTABLE. And there's the question. If I wanted a numeric value I can use SUMX etc. and provide RELATEDTABLE(Requisition) as the table parameter. But since I want the text value of the requester I'm not sure how to tweak the DAX to pass RELATEDTABLE as a parameter in VALUES.
Since the tables are 1:1 related I'm not sure about the performance hit if I were to use PowerQuery to add the Requisitions columns to the PurchaseOrder table - the PO table is millions of rows and 30+ columns already.
Thanks for your suggestions!