earliest date
3 TopicsIdentify records where the first created date meets a condition from a second variable
i have CRM data with where i need to create a new column which will index a '1' for all ID's where the first invoice issued 'CreatedDate' was paid ('State' = 2). So with the below example only row 2 is deemed as first invoice paid. Data context - Each unique 'ID' will have a unique 'ContractID' but many 'InvoiceID'. I've tried to nest CALCULATE(MIN(Table[CreatedDate) with RETURN but couldnt get it to work. Row ID ContractID InvoiceID CreatedDate ModifiedDate State 1 b6910000-00000-ed11-00000-0001000 CONTRACT-0100 BAGG31322 20/04/2023 20/04/2023 0 2 BAG312683 21/02/2023 23/05/2023 2 3 BAG314743 09/05/2023 09/05/2023 0 4 BAG315613 09/03/2023 09/03/2023 0Solved1.3KViews0likes6CommentsGet earliest date by condition
Jolly Day, I am needing to create a measure to get the earliest date by Item Code. I am needing only one result for item code filtered by the earliest date. I tried using the filter on the visual to get the earliest date but my results go wonky so I am needing to do this in a measure. What I am currently getting. What I am needing Item Code WO_DueDate 00-200463 12/16/2022 Many thanks in advance!! 🙂Solved1.1KViews0likes2CommentsGet the Quantity by the Earliest Date
Hello, I am trying to get the most recent quantity by production week, by Plant (Where it is produced) and by SKU (Item No) depending on the earliest date (version date). Can someone help me with this. I do not mind if it is done in DAX or Power Query. Below is my data view. I have tried groups but when I try to get the quantity it sums all the values up. I dont want that I want what ever was the quantity by the earliest plan version by item. ========================================================== Example of what I want: If I were to sum the quantity of production week of 9/25/2022 I would get like 900,000 (LBS) because it sums it all. I want to get the last value depending on the earliest or closest date of that production week for that Item and plant level. Let me know if I need to clarify anything. Below is an example of why the equal dates do not work:Solved1.5KViews0likes2Comments