Calculate Value of Average Unit Size in an Area Schedule for Units of Different Sizes

Calculate Value of Average Unit Size in an Area Schedule for Units of Different Sizes

jorgedelacova7458
Advocate Advocate
3,546 Views
17 Replies
Message 1 of 18

Calculate Value of Average Unit Size in an Area Schedule for Units of Different Sizes

jorgedelacova7458
Advocate
Advocate

jorgedelacova7458_0-1626812222994.png

I have a schedule (image attached) where I am trying to calculate the average residential unit size for each unit type. The schedule has been collapsed (as in, I unchecked Itemize Each Instance in sorting) so that the Area is a grand total for that type. The problem is that some of the unit types have different areas, which "breaks" the schedule. Does anyone know how I can approach this issue? I created an "Area - Unitless") parameter, which is a calculated value of Area / 1 SF,. and the My Count parameter, which is a number Type parameter where I set the value to 1 (to be able to use the Count value).

0 Likes
Accepted solutions (1)
3,547 Views
17 Replies
Replies (17)
Message 2 of 18

ToanDN
Consultant
Consultant
Accepted solution

See the attached Revit 2022 file and see if it makes sense.

 

ToanDN_0-1626813992253.png

 

0 Likes
Message 3 of 18

jorgedelacova7458
Advocate
Advocate

So close! For some reason, the first unit type did not populate with a calculation.

jorgedelacova7458_0-1626893163741.png

 

 

0 Likes
Message 4 of 18

ToanDN
Consultant
Consultant

Itemized the schedule and see which rows don't return the value.

0 Likes
Message 5 of 18

jorgedelacova7458
Advocate
Advocate

Please disregard. One of the areas was not enclosed. Thanks, @ToanDN  Your original solution worked.

0 Likes
Message 6 of 18

rjohnstonBK2JP
Contributor
Contributor

Please upload an image of the formulas. It would be helpful for those who haven't upgraded to 2022 yet

 

My issue is that I have the formula as =(Area / Count) but the area parameter doesn't produce a number value if it's a calculated field. It only produces a field if it's itemized. 

0 Likes
Message 7 of 18

ToanDN
Consultant
Consultant

ToanDN_1-1644517518958.png

ToanDN_2-1644517540116.png

ToanDN_3-1644517568887.png

 

 

 

 

Message 8 of 18

rjohnstonBK2JP
Contributor
Contributor
The math makes no sense but it worked perfectly. That formula prints out as (Area / 100% * 100%) but somehow it gets the correct answer. Thanks for your help!
0 Likes
Message 9 of 18

ToanDN
Consultant
Consultant

@rjohnstonBK2JP wrote:
The math makes no sense but it worked perfectly. That formula prints out as (Area / 100% * 100%) but somehow it gets the correct answer. Thanks for your help!

Math always makes sense.  (Area / 100% *100%) because you untick Itemize every instance box, so you get the Sum of every row which is of course, 100%.  Tick that box then you will see and understand.

Message 10 of 18

Kev_D
Collaborator
Collaborator

@ToanDN 

This is great, and easily replicated from your file. But I am trying to understand it. How does the 'Percent' calculation work? How does it return a value? It calls for a percentage of 'Area' by 'Name'. How does 'Name' represent the grand total when it is only a text value?

Take the first line. I understand the value of 'Percent', since it returns that the area is 32.31% of the grand total (20.43m² is 32.31% of 63.24m²). But how does it get this from the 'Name' parameter?

Kev_D_1-1681246148283.png

 

What am I not seeing?

0 Likes
Message 11 of 18

ToanDN
Consultant
Consultant

What it means is Percent = Area of each instance / Sum Area of all instances with the same Name.

 

ToanDN_0-1681250617804.png

 

Message 12 of 18

Kev_D
Collaborator
Collaborator

It makes sense but it doesn't 🤔. There's nothing in that formula that suggests it will capture the grand total of the area if the names are the same. It's just Area by Name. Anyway, it works, so time to walk away. Revit does work in very mysterious ways!! 

 

0 Likes
Message 13 of 18

N_Vishak
Observer
Observer

@ToanDN  Could you help me out with how I can calculate average area from the total residential area under Area use. I set the total unit count as a Parameter data and input the unit count.  Some how the formula I used , Area/Total Unit count, gives me "Improper Boolean expression". Appreciate the help. Thanks!

N_Vishak_0-1688518885718.png

N_Vishak_1-1688518956781.png

N_Vishak_2-1688519015562.png

 

 

0 Likes
Message 14 of 18

Kev_D
Collaborator
Collaborator

Total Unit Count is a text parameter.

Kev_D_0-1688560899338.png

Revit does not use text parameters in calculated values. Change Total Unit Count from Text to Number

0 Likes
Message 15 of 18

N_Vishak
Observer
Observer
That worked !!! Thank you 🙂
Message 16 of 18

dlondonoEZXX8
Explorer
Explorer

Have you ever tried this with 2-storey units?

0 Likes
Message 17 of 18

ToanDN
Consultant
Consultant

@dlondonoEZXX8 wrote:

Have you ever tried this with 2-storey units?


No but it doesn't make any differences.

0 Likes
Message 18 of 18

andybrack
Advocate
Advocate

@jorgedelacova7458 @ToanDN Thanks for launching this thread.  The solution came in handy yet again!