The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I would say I am a proficient Power BI user but I still have a lot to learn. I have been stuck on this formula for a few days now and hope that someone may have an idea how to solve it.
I have two measures in my report that calculate occupancy rate. The measures are both different because the datasets are not the same and so require additional calculations.
Measure 1:
Solved! Go to Solution.
I think I figured out what I need to do but would appreciate anyones comments if there is a better way to achieve the same result. I ended up using a SWITCH measure based on SELECTED VALUE of my YEAR filter. The calculation at the end is my ELSE statement if no YEAR filter is selected.
This is what I ended up coming up with:
Occupancy Measure =
I think I figured out what I need to do but would appreciate anyones comments if there is a better way to achieve the same result. I ended up using a SWITCH measure based on SELECTED VALUE of my YEAR filter. The calculation at the end is my ELSE statement if no YEAR filter is selected.
This is what I ended up coming up with:
Occupancy Measure =
Hi @goodhvnting ,
Glad to hear that you have solved your problem, please accept your answer as solution first so that more users facing the same problem can find the solution faster.
If someone else provides a more convenient answer in the future, please mark it as solution as well, thanks!
Best Regards,
Dino Tao