The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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)
Now I can count the number of nights per Month, but I can't sum the total of nights for each Month.
Can you help me?
Solved! Go to Solution.
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:
Best regards
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?
Please try to convert your check-in/check-out data in your reservas-data to date-type.
I have already done it but I can't execute the crossjoin.
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:
Best regards
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
21 | |
21 | |
18 | |
16 | |
13 |
User | Count |
---|---|
41 | |
38 | |
23 | |
20 | |
20 |