Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
Depending on the the date range a guest is staying, I want to calculate the revenues per month.
For example, I want the average daily revenues of the reservations below to be split depending on the month they belong.
More precisely, in the first row:
- (25/3 - 31/3) * 92.25
&
- 1/4 * 92.25 (checked out date is not counted as stay in)
| Checked In | 25/03/23 | 02/04/23 | 92,25 |
| Checked In | 26/03/23 | 02/04/23 | 94,80 |
| Checked In | 26/03/23 | 02/04/23 | 123,88 |
I don't know if my information are clear but thank you in advance for any help.
@MaicLioulias Have my answer solved your problem? If so, can you please accept my answer as Solution to help other members find it faster? Thank you very much for your kind cooperation!
Hi, not sure how you want to slice it and dice it, but here are some ideas.
Change the data type to date
Now you can create a calendar table hook it up with dates of stay and that is it, have your revenue calculated easily.
Please refer to this article to learn more:
https://www.linkedin.com/pulse/hr-reporting-generating-records-between-start-end-values-dontsova/?tr...Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 17 | |
| 8 | |
| 8 | |
| 7 |