I currently have a fairly standard model, with invoices as the data table, and various lookup tables (calendar/projects etc).
I am trying to decide what to do about one of the tables, purchase orders. I can connect it to the invoices table, however it is ambiguous. Therefore, I tried to run a formula in order to achieve my goal which is "what is the total value of the amount invoiced against each purchase order":
Total Invoiced Purchase Order = CALCULATE(sum(Invoices[Value]),USERELATIONSHIP(PurchaseOrders[Name],Invoices[PurchaseOrder]))
Unfortunately the formula is summing just invoices value and not taking into account the amounts invoiced against that purchase order. I assume this is because the relationship is inactive.
Question, can I create a merged query that would combine the purchase order and invoices table and would this solve the problem?
And if not, what DAX formula might be better than the one I'm using attached?
Anything related to PowerPivot and DAX Formuale
1 post • Page 1 of 1
Who is online
Users browsing this forum: Bing [Bot] and 10 guests