Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
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
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
17 | |
16 | |
13 | |
9 | |
9 |