Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
I am currently getting data from our Microsoft Dynamics AX tables. We have our sales quantities that when filtered by invoice date will give us the quantity that's been invoiced to date. We also have our sales quantities that when filtered by confirmed delivery date will provide us with the quantity that is in Open Order or Delivered status. The data for sales quantity is the same for both instances i.e. we use SALESQTY to get both invoiced or open & delivered sales quantities. The issue is that the invoice date doesn't provide us with the open order/delivered quantities, and the confirmed delivery date doesn't give us the invoiced quantities. I want to add these two together in the same column.
Essentially I want:
(SALESQTY(Filtered by Invoiced Date - Current Month/Year)+(SALESQTY(Filtered by Confirmed Delivery Date - Current Month/Year & Sales Line Status = "Open Orders" & "Delivered )
This might be an easy solution, I just haven't gotten it to work correctly.
Blog on dealing with two dates, very similar : https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Proud to be a Datanaut Connect on Linkedin
@amitchandak I've created the date table as you laid out, however, you end up using a Count function, whereas I need to use a Sum function for the quantity and still be able to filter the data by date.
@amitchandakI haven't been able to get it to work. Let me lay out the Tables and Data and see if you can clarify for me.
Table: SalesLine
Data:
SalesLine[Salesqty]
SalesLine[Confirmeddlv]
Table:CustInvoiceTrans
Data:
CustInvoiceTrans[Invoiceddate]
Table:Date
Data:
Month Year
Based on these I want to have SalesLine[Salesqty] filtered by SalesLine[Confirmeddlv] + SalesLine[Salesqty] filtered by CustInvoiceTrans[Invoiceddate]
I currently have the Date table with an inactive relationship to the SalesLine[Confirmeddlv] & CustInvoiceTrans[Invoiceddate]. Both are Many to one and single direction.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.