Forum Discussion
Jc_16
3 years agoFrequent Visitor
How to distribut days
I'm working in a hotel and I need to distribut and sum the number of night on each Monty. For example, a client stay since 28/12/2022 to 03/01/2023, (3 nights in december and 3 nights in January) N...
- 3 years ago
Hey there,
I guess your data table looks similar to this:
Guest Arrival Departure A 27.12.2022 05.01.2023 B 30.11.2022 01.12.2022 ?
Then try:
Calendartable:
Crossjoin:
virtable = filter(CROSSJOIN(cal,'Table'),'Table'[Arrival]<=cal[Date] && 'Table'[Departure] > cal[Date])Best regards
Jc_16
3 years agoFrequent Visitor
Hello,
I'm having some problems when I wrote the querry:
I can't do it like you said.
Can you help me with the problem?