Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
25 | |
15 | |
11 | |
8 | |
8 |
User | Count |
---|---|
19 | |
15 | |
15 | |
14 | |
13 |