Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi all,
I am trying to calculate the occupancy rate per hour per location. I have managed to do so using the following formula
Can anyone help me with this issue?
Kind regards,
Wim
Solved! Go to Solution.
@wimsangers , +0 forces left join.
I try this kind of measures in the past
0 between range
Measure = var _1= SUM(Opportunity[Opportunity count]) +0
var _min = minx(ALLSELECTED('Calendar'), 'Calendar'[Date])
var _max = maxx(ALLSELECTED('Calendar'), 'Calendar'[Date])
return
CALCULATE(if(max('Calendar'[Date]) <_min || max('Calendar'[Date]) >_max , BLANK(), _1))
Hi @amitchandak,
Two days ago you have helped met greatly by finding a solution to the problem mentioned above.
I have a follow up question on this, and I hope you can help me. I want to calculate how many hours there was an occupany rate of 100%.
I have tried it with the following measure:
@wimsangers , +0 forces left join.
I try this kind of measures in the past
0 between range
Measure = var _1= SUM(Opportunity[Opportunity count]) +0
var _min = minx(ALLSELECTED('Calendar'), 'Calendar'[Date])
var _max = maxx(ALLSELECTED('Calendar'), 'Calendar'[Date])
return
CALCULATE(if(max('Calendar'[Date]) <_min || max('Calendar'[Date]) >_max , BLANK(), _1))
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.