Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
dylen
Regular Visitor

How to find occupancy percantage

Hi, 

 

I am trying to show our Occupancy total as a number and as a percentage. 

Ideally I would like to replicate this formula from excel but no luck = IF(Operational places>0,(1-(Vacancies/Operational places)),0) 

 

Currently, the Occupancy as a number measure (column below) is working correctly, but when shown as a percentage, it returns incorrect values. 

 

Below is the columns I am referencing:

dylen_0-1717502900539.png

dylen_2-1717502918448.png

 

 

 

1 ACCEPTED SOLUTION
rajendraongole1
Super User
Super User

Hi @dylen - Create below measures as may be if you want to show occupancy count use the first measure and for percentage occupancy use the second measure :

 

Measure 1: Occupancy Number = IF(SUM('Table'[Operational places]) > 0, (1 - (SUM('Table'[Vacancies]) / SUM('Table'[Operational places]))), 0)

 

Measure 2: Occupancy Percentage = IF(SUM('Table'[Operational places]) > 0, (1 - (SUM('Table'[Vacancies]) / SUM('Table'[Operational places]))), 0) * 100

 

use format, to display the values in percentage.Now it is possible to display the percentage occupancy 

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Your solutions is great @rajendraongole1 , it work fine.
Hi, @dylen 

Have you solved the current problem? If yes, you can mark a helpful reply as a solution so that others in the community can quickly find a solution when they encounter the same problem. If you don't, you can try the following DAX expressions:

Occupancy = 
VAR Operational_places = SELECTEDVALUE('Table'[Operational places])
VAR vancancies = SELECTEDVALUE('Table'[Vancancies])
RETURN IF(Operational_places>0,1-DIVIDE(vancancies,Operational_places),0)

Here are the results:

vjianpengmsft_0-1717560004966.png

Set the result as a percentage:

vjianpengmsft_1-1717560059516.png

I've provided the PBIX file used this time below.

 

 

How to Get Your Question Answered Quickly

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Jianpeng Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

rajendraongole1
Super User
Super User

Hi @dylen - Create below measures as may be if you want to show occupancy count use the first measure and for percentage occupancy use the second measure :

 

Measure 1: Occupancy Number = IF(SUM('Table'[Operational places]) > 0, (1 - (SUM('Table'[Vacancies]) / SUM('Table'[Operational places]))), 0)

 

Measure 2: Occupancy Percentage = IF(SUM('Table'[Operational places]) > 0, (1 - (SUM('Table'[Vacancies]) / SUM('Table'[Operational places]))), 0) * 100

 

use format, to display the values in percentage.Now it is possible to display the percentage occupancy 

 

Did I answer your question? Mark my post as a solution! This will help others on the forum!
Appreciate your Kudos!!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors