Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
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...Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
12 | |
11 | |
9 | |
8 | |
8 |