Skip to main content
Question

How to find a missing value in a range of data

  • November 15, 2021
  • 1 reply
  • 62 views

Forum|alt.badge.img

Hello, so I want to find a missing value as all the "Unit" must be in sequence in each floor.

Here are my rules:

All the units should be assigned sequentially to the corresponding floor, meaning

1/F: Unit = 0001, 0002, 0003, till to the largest number in the data

2/F: Unit = 0001, 0002, 0003, till to the largest number in the data

I have "FloorNo_FromFloorPolyID", meaning the level of floors.

"Test_Unit_No" meaning the numbering of the unit.

I want to find out the missing unit number of each floor as the input data will have a lot of floors in the future.

 

As the sample shown below, Floor 10 is missing Unit 0001 to 0004.

Could someone please give me a hand. Should I use python caller? Yet I have no clue how to write script ... please help.

Thank you in advanced.

1 reply

jkr_wrk
Influencer
Forum|alt.badge.img+29
  • November 15, 2021

Could you merge all possible floor numbers to all floors, creating a dataset of all the combinations you want?

 

Then merge all the wanted combinations to existing combinations?


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings