Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have sales table with room bookings (hotel), i have also another room type table with the name and the number of each room type.
I have calculated the occupancy per room type with the formula
then i made a new one so the matrix tables shows correct sum
If 0 expected then try
free rooms = CALCULATE([Rooms available_2020]-[Total_rooms_booked 2020];FILTER(Date_Rev;Date_Rev[Year]=2020))+0
yes it fixed the blank cells , but it doesnt show me the correct empty rooms just 0.
so i changed the formula to
the problem starts from here the room type table is this one
so i create a measure called maxpertype = average(number_r)
then there is an active relationship with the bookings table with room type to room type one to many.
so when i calculate the room types number available for
2020 =
Hi @n3ptune ,
kindly share your sample data and excepted result to me if you don't have any Confidential Information. Please upload your files to One Drive and share the link here.
@v-frfei-msft thank you for replying
ill try to explain it better
so we have this table which is for room types
and this measure maxpertype = average(number_r) so i can use the numbers for my calculations
then we have sales table which is like 15/01/20 1(for occupied) sui(room type) 200(price)
16/01/20 1 sui 200
there is active relationship room types to sales table.
i want to create a table which will have occupancy per room types and free rooms per room type at rows
and date.day at columns. i have month filter slicer so i can choose the month i want to visualize.
measure that affect the calculations are.
this formula works for the most of days and room types , except those that there isnt any entry at sales table for specific dates and it shows blank cells.
2.free rooms per type
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
99 | |
82 | |
70 | |
61 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |