Forum Discussion
Units Sold Since 5pm Yesterday
- 8 years ago
Hi, Try this to obtain sales from 5PM of Previous Day
Calculated Column
1. InvoiceDate-OnlyDate = 'All Invoices'[Invoice Date].[Date] --Modeling - Format -- To only Date
2. InvoiceDate-Diff =
DATEDIFF('All Invoices'[InvoiceDate-OnlyDate],TODAY(),DAY) * 100 + hour('All Invoices'[Invoice Date])In level filter add:
Regards
Victor
- 8 years ago
Hi Victor,
That was great thank you. I made a minor tweak to it as what it was actualy giving me was sales before 5pm yesterday plus sales so far today.
Changing
InvoiceDate-Diff = DATEDIFF('All Invoices'[InvoiceDate-OnlyDate],TODAY(),DAY) * 100 - hour('All Invoices'[Invoice Date])
and then filtering for values under 83 worked!
Many thanks on this.
Hi, Try this to obtain sales from 5PM of Previous Day
Calculated Column
1. InvoiceDate-OnlyDate = 'All Invoices'[Invoice Date].[Date] --Modeling - Format -- To only Date
2. InvoiceDate-Diff =
DATEDIFF('All Invoices'[InvoiceDate-OnlyDate],TODAY(),DAY) * 100 + hour('All Invoices'[Invoice Date])
In level filter add:
Regards
Victor
Hi Victor,
That was great thank you. I made a minor tweak to it as what it was actualy giving me was sales before 5pm yesterday plus sales so far today.
Changing
InvoiceDate-Diff = DATEDIFF('All Invoices'[InvoiceDate-OnlyDate],TODAY(),DAY) * 100 - hour('All Invoices'[Invoice Date])
and then filtering for values under 83 worked!
Many thanks on this.