The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi all,
I have a report where I need to calculate occupancy rate : office reservation/ available desk.
When I need to compute the global occupancy rate for a month or a week , it shows a wrong rate.
Example : I have 4 available desks in a month, and 12 people did reservation for a month (number of reservation).
So when I calculate the rate = DIVIDE( Number of reservation, Available desk), it gives a wrong data as 300%.
Could anyone help how to fix this kind of evaluation context problem in DAX ?
Here is my data model :
Thanks in advance.
@Randcharles , For this first make sure you have one date table
Then Create a measure for Daily reservation
Proud to be a Super User! |
|
Hi @Randcharles ,
Your calculation is based on your data model and your tables. Please share a sample file with us.
We need to know how to calculate Number of reservation and Available desk.
You can also show us the result you want, this will make it easier to find the solution.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
119 | |
83 | |
74 | |
54 | |
46 |
User | Count |
---|---|
134 | |
124 | |
78 | |
64 | |
63 |