Forum Discussion
Next Working Date Measure Calculation for Prior Non Working Dates
Hello Geeks,
Just trying another approach, so creating another thread as the scenario is different with just one table with next business date in it.
Expected Outcome - Products Received for a given order date and Order Received Date Business Day combo.
Sample 1 - For Order Date 10 Jan, Products received on Second Business Day that is 13 Jan should count for Products Received on 13 Jan (4) + Products Received on prior Holidays (20 (14 Jan( + 20 (15 Jan) ) = 44
| Input | |||
| Order date | Order Received Date | Current or Next Working Date | Products Received |
| 10-Jan | 10-Jan | 10-Jan | 1 |
| 10-Jan | 11-Jan | 13-Jan | 20 |
| 10-Jan | 12-Jan | 13-Jan | 20 |
| 10-Jan | 13-Jan | 13-Jan | 4 |
| 10-Jan | 14-Jan | 15-Jan | 3 |
| 13-Jan | 13-Jan | 13-Jan | 9 |
| 13-Jan | 14-Jan | 15-Jan | 7 |
| 13-Jan | 15-Jan | 15-Jan | 9 |
| 15-Jan | 15-Jan | 15-Jan | 8 |
| 15-Jan | 16-Jan | 16-Jan | 9 |
| 15-Jan | 17-Jan | 17-Jan | 1 |
| Expected Outcome | |||
| Order date | Products Received Same Day | Products Received Second Business Day (Including holiday shipments) | Products Received Third Day (Including holiday shipments) |
| 10-Jan | 1 | 44 | 3 |
| 13-Jan | 9 | 16 | 0 |
| 15-Jan | 8 | 9 | 1 |
- Anonymous7 years ago
Hi curiouspbix0 ,
I'd like to suggest you add a calculated column group to your table, then create a matrix visual with order date as row, group as column and sum of product as value.
Group = COUNTROWS ( FILTER ( SUMMARIZE ( ALL ( Table1 ), [Order date], [Current or Next Working Date] ), [Order date] = EARLIER ( Table1[Order date] ) && [Current or Next Working Date] < EARLIER ( [Current or Next Working Date] ) ) ) + 1Regards,
Xiaoxin Sheng
1 Reply
- AnonymousNot applicable
Hi curiouspbix0 ,
I'd like to suggest you add a calculated column group to your table, then create a matrix visual with order date as row, group as column and sum of product as value.
Group = COUNTROWS ( FILTER ( SUMMARIZE ( ALL ( Table1 ), [Order date], [Current or Next Working Date] ), [Order date] = EARLIER ( Table1[Order date] ) && [Current or Next Working Date] < EARLIER ( [Current or Next Working Date] ) ) ) + 1Regards,
Xiaoxin Sheng