Forum Discussion
Missing Data (Time)
- Anonymous1 year ago
Hi DannyAlfa ,
Thanks Thejeswar for the quick reply. I have some other thoughts to add:
(1) There is a hotel name column in your expected results that does not exist in your data, where I have added the hotel name column to the test data.
(2) Create a time column.Time = TIMEVALUE([Date])(3)Create measures.
Min time = CALCULATE(MIN('Table'[Time]),FILTER(ALL('Table'),'Table'[Hotel Name]=MAX('Table'[Hotel Name])))Max time = CALCULATE(MAX('Table'[Time]),FILTER(ALL('Table'),'Table'[Hotel Name]=MAX('Table'[Hotel Name])))If I have misunderstood you, please clarify in a follow-up reply.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Can you share some sample dummy data from the table that you are using to get the timing table? It would be great if you also can share the expected output for the data set that you are sharing in the timing table
Regards,
Thanks Thejeswar I have attached a dummy data set, within this dataset I have added columns within excel to split Date & Time and added a field to give me the day of the week also.
The output should look like the below (Tills down the left): -
| Date | Receipt number | Receipt type | Category | SKU | Item | Variant | Modifiers applied | Quantity | Gross sales | Discounts | Net sales | Cost of goods | Gross profit | Taxes | POS | Store | Cashier name | Customer name | Customer contacts | Comment | Status |
| 21/10/2024 23:35 | 103-99999 | Sale | BAR SNACKS | 12345 | Crispy Chips 50g | BBQ | None | 1 | 1.5 | 0 | 1.5 | 0.75 | 0.75 | 0.25 | Bar A | Hotel A | John Doe | Jane Smith | 123-456-7890 | N/A | Closed |
| 21/10/2024 23:30 | 50-12345 | Sale | DRAUGHT BEERS | 67890 | Lager Pint | Regular | None | 1 | 5 | 0 | 5 | 2.5 | 2.5 | 0.8 | Bar B | Hotel B | Jane Roe | Mike Lee | 987-654-3210 | N/A | Closed |
| 21/10/2024 23:25 | 76-54321 | Sale | SOFT DRINKS | 13579 | Cola 200ml | Diet | None | 2 | 3 | 0 | 3 | 1.2 | 1.8 | 0.5 | Bar C | Hotel C | Sam Smith | Clara Johnson | 555-123-4567 | N/A | Closed |
| 21/10/2024 23:20 | 103-88888 | Sale | PREMIUM SPIRITS | 24680 | Premium Whiskey 50ml | Double | None | 1 | 8 | 0 | 8 | 3 | 5 | 1.2 | Bar D | Hotel D | Alex King | Rick James | 222-333-4444 | N/A | Closed |
| 21/10/2024 23:15 | 82-77777 | Sale | HOUSE SPIRITS | 97531 | Vodka 50ml | Single | Lemon Slice | 1 | 6.5 | 0 | 6.5 | 2 | 4.5 | 0.9 | Bar E | Hotel E | Chris Brown | Sarah Connor | 444-555-6666 | N/A | Closed |