Math.Round all dimensions

Hi, guys. I need math.round sizes. For example:

"350 000 mm"-> "350 mm",

"420 001 mm"-> "420 mm"

"mm 419,97"-> "420 mm.

and so on. All in a script.

The thing is that I know how to play with the numbers and characters at the same time, I only know how math.round numbers.

Thank you.

There are different ways to solve this, one's of them

var s_number = "419.97 mm";
var delimeter = ' ';
var a_number = s_number.split(delimeter);
$.writeln(Math.round(a_number[0]) + delimeter + a_number[1]);

Tags: Illustrator

Similar Questions

  • Math.Round () and Math.Random)

    Hello

    Do we have the equivalent methods in J2ME for Math.round () and Math.Random ()? I could not find in Java.util.Math or net.rim.device.api.Math

    Thank you.

    Reshma

    @ JavaMEUser, you can write your own class of math for your application, use the following code...

    public static int round(float f)  {     return (int)(f + 0.5F);   }public static long round(double d) {                return (long)(d + 0.5D);   }
    

    Thank you!

  • No Math.round. Now what?

    I'm trying to round a number that comes out of one of my workflow to the first decimal place for reports, but VCO does not have the Math.round function.   Someone at - it none of the recommendations on another way to do it?

    vCO has Math.round (); Simply not documented in the research of the API...

    var float1 = 1.2345;
    System.log(Math.round(float1));
    

    [18:37:45.563 2012-05-16] [I] 1

  • What does the plus sign after that certain elements mean?  that is '"+ Math.round (& s);".

    Hello

    I was wondering what the sign made in the following line of code: ' "+ Math.round (-s); ". 

    What is + s ?

    What's doing for + Math.round ?

    Thank you

    Linda

    Someone is very careful and ensuring that the processed or calculated value is a number. "Once could languages as easily the ' Number()" constrictor.

    Since the Math.round and product only numeric values, it is redundant and unnecessary.

  • Math.Round for shape layers land on whole pixels?

    Trying to keep my shape on whole pixels layers to avoid blur of subpixel.

    For one-dimensional properties, it works fine:

    Math.Round (value);

    But for two dimensional props, I am running into errors with this stuff:

    Temp = Math.round (content("Rectangle_1").content ("mapped Rectangle 1") .value .size)

    (temp [0], temp [1])

    Temp = Math.round (content("Rectangle_1").content ("mapped Rectangle 1") .size)

    (temp [0], temp [1])


    I don't know that my syntax is off. Real estate in berries always give me problems. Can you help me?

    Missing just a semicolon at the end of the first line.

    In response to your second question, Yes - in fact it works:

    [Math.round(value[0]), Math.round(value[1])]

    Dan

  • Math.Round question

    I'm looking to use math.round to round a decimal number double and then eliminate any leakage zero.

    What I have in a button field runs a javascript script returns "undefined". Change the original.value result.value passes the value for the second field, but before conversion to two decimal places. Using text fields without designating a specific format automatically removes the zeros on the right.

    original var = this.getField ("Text3")
    var result = Math.round(original*100)/100

    getField("Text5").value = result.value

    Well, you keep this way, and in line 3 result.value lead change. Only field objects have a value property, and the result is not a field property.

  • toFixed, toPrecision, Math.round

    Hello (again)!

    What is the difference between the 3 mentioned in the topic? ~ toFixed(), toPrecision(), Math.round)

    In addition, they return a string rather than a numeric value? ~ toFixed(), toPrecision()

    Thank you!

    toFixed means n number of between 0 and 20 places after the decimal point.

    toPrecision means how number will include the result.

    Yes as the documentation says it will return a string because most of the time

    When you use these functions, what you want is to present data to the

    user.

  • Any ideas on how to accelerate this calc without eliminating all dimensions?

    Hi all

    All the dims are rare.

    DIFFICULTY (& CurrYr, real, "Active", "USD_PY", "USD_Bud", "USD", LOC)

    DIM CALC ('geography');
    CALC SUN ('Segment');
    DIM CALC ('Legal_Entity");

    ENDFIX

    Thank you.

    Oh wait, if the three dimensions is to calc dim'ed are rare, then change the Dim calc for a tot.

  • All dimension values must be single line values

    Hi all

    I have a dimension long_description attribute mapped to a column of text that contains a character "/ n". When I try to load dimension I get following error.


    An error occurred on the server
    Class of error: failure of the Express
    Server error descriptions:
    INI: error creating a generic Manager definition to < BuildProcess > TxsOqConnection::generic
    INI: XOQ-01600: OLAP DML error "ORA-34052: all the dimension values must be single line values." while executing DML 'SYS. AWXML! R11_COMPILE_ATTRIBUTES('TEST.) DIMENSION') ', generic for TxsOqStdFormCommand::execute '.

    If I delete the mapping between my column of text in the description attribute long size loads very well.

    It was happening because my text column contains several lines? text seems valid for reporting purposes (I mean having several lines)

    Thank you
    Dietsch.

    Analytic workspace dimensions do not support dimension members that contain new lines. This assumption is so integrated in language OLAP DML that it is difficult to see how it could ever be changed. Therefore, you cannot map a level (or hierarchy) key to a column that contains values to the new lines. But in your case you map an attribute, not a level key, so the error message is confusing. The problem is that your long description attribute is "indexed", which means that it is implemented using a DIMENSION and a RELATIONSHIP rather than a VARIABLE. To illustrate, I created a dimension named TEST with two levels, A and B, and one attribute, LONG_DESCRIPTION. The page of an attribute in AWM has two check boxes 'Create columns in views level attribute' and 'Index' that control how the attribute is being implemented.

    This is what is created in the AW if both are false.

    ->listnames like '%TEST%LONG%'
       1 VARIABLE
       ---------------------
       TEST_LONG_DESCRIPTION
    

    This is what is created if "Index" is checked.

    ->listnames like '%TEST%LONG%'
       1 DIMENSION                    1 VARIABLE
       ----------------------------   ----------------------------
       TEST_LONG_DESCRIPTION_INDEX    TEST_LONG_DESCRIPTION_STORED
    
       1 RELATION
       ----------------------------
       TEST_LONG_DESCRIPTION
    

    And here's what you get if you check "create columns for the level attribute of views."

    ->listnames like 'TEST%LONG%'
       2 DIMENSIONs                     3 VARIABLEs
       ------------------------------   ------------------------------
       TEST_A_LONG_DESCRIPTION_INDEX    TEST_A_LONG_DESCRIPTION_STORED
       TEST_B_LONG_DESCRIPTION_INDEX    TEST_B_LONG_DESCRIPTION_STORED
                                        TEST_LONG_DESCRIPTION
    
       6 RELATIONs
       ------------------------------
       TEST_A_LONG_DESCRIPTION
       TEST_A_LONG_DESCRIPTION_HIER_U
       TEST_A_LONG_DESCRIPTION_UNIQUE
       TEST_B_LONG_DESCRIPTION
       TEST_B_LONG_DESCRIPTION_HIER_U
       TEST_B_LONG_DESCRIPTION_UNIQUE
    

    The thing to note is that if you check one of these boxes, then your attribute is implemented by using a dimension of AW and AW relationship. This gives a good performance, but imposes the limitation that your attribute values cannot contain newlines. The obvious solution is to uncheck both boxes so that your attribute is implemented as a VARIABLE. If you absolutely have indexed attributes, so I guess you can use the SQL REPLACE function to change the new lines in escaped to the mapping layer

    GLOBAL > select REPLACE('a
      2  b', '
      3  ',
      4  '\n')
      5* from dual
    /
    
    REPL
    ----
    a\nb
    
    GLOBAL > select REPLACE('a\nb', '\n','
      2  ')
      3* from dual
    /
    
    REP
    ---
    a
    b
    

    You must convert the escape sequence in a new line endangered.

  • Math function round() makes invisible label...

    I have a ranking application that figures on a percentage of an assignment and displays a side.

    with gold update, the label no longer appears when I run the application.

    Label {
                    id: findGrade
                    // custom property to calculate final grade percentage
                    text: "Percent: " + round(grdCalc.text * 100) / 100 + "%"
                    textStyle.fontWeight: FontWeight.Bold
                    enabled: true
                    visible: true
    
                }
    

    I also tried of Math.round, but it doesn't seem to work. I need to import a library of bb to make this work?

    If so, how can I find out what libraries can I include in a project. is it all just

    import bb.math 1.0?

    It must be Math.round (). I have not tried your code and can not at the present time, but try to put parentheses around all the math... "Percent:" + (Math.round(grdCalc.text * 100) / 100) + "%" ""

    Also conceivable that you'll have to do something with grdCalc.text. parseInt (grdCalc.text) or parseFloat(). Actually, I forgot how JavaScript will handle this entry otherwise.

  • All the dimension values must be single line values

    I created a Simple hierarchy with the following levels:

    Category
    Subcategory
    Agenda

    The mapping of the hierarchy above is based on a table where the column list are as follows:

    ITEM_KEY
    NOM_ELEMENT
    BRAND_KEY
    BRAND_NAME
    CATEGORY_KEY
    CATEGORY_NAME
    SUBCATEGORY_KEY
    SUBCATEGORY_NAME


    Item_key is the primary key for this table and nom_element is also unique.

    When I maintain this dimension, the following error occurs:


    An error occurred on the server
    Class of error: failure of the Express
    Server error descriptions:
    INI: Error creating a generic Manager definition to < BuildProcess > TxsOqConnection::generic
    INI: XOQ-01600: OLAP DML error "all dimension values must be single line values." while executing DML 'SYS. AWXML! R11_COMPILE_ATTRIBUTES('ITEM.) DIMENSION') ', generic for TxsOqStdFormCommand::execute '.

    at oracle.olapi.data.source.DataProvider.callGeneric (unknown Source)
    at oracle.olapi.data.source.DataProvider.callGeneric (unknown Source)
    at oracle.olapi.data.source.DataProvider.executeBuild (unknown Source)
    to oracle.olap.awm.wizard.awbuild.UBuildWizardHelper$ 1.construct (unknown Source)
    to oracle.olap.awm.ui.SwingWorker$ 2.run (unknown Source)
    at java.lang.Thread.run(Thread.java:595)

    The essential error is "all the dimension values must be unique row values", which means that the server tries to create a dimension of AW member containing a newline character. The error occurs under the SYS. AWXML! Procedure R11_COMPILE_ATTRIBUTES, which is where the attributes are indexed (i.e. transformed into dimension members). If my guess is that one of your attributes (likely mapped to a column _NAME) contains a new line.   The solution is to disable the indexing for that attribute.   In terms of AWM you must make sure the following boxes are not activated in the "Général" pane

  • Create the views level attribute columns
  • Index

  • How to change my application to adjust the dimensions of the device?

    The dimensions of my apps are 800 x 450.

    The dimensions of my android devices are 540 x 960

    With this of course when I installed on the device of the app appeared not implemented nationally within a window on my mobile device.

    I have the updated XML code the

    Now I'll show you some of my code.

      public static var gameStage:Stage;
    ....  
    
    public function initApplication():void
      {
       this._game = new MovieClip;
       super.addChild(this._game);
      }
      private function initThreeBalls():void
      {
       gameStage = this._game.stage;
       var starBackGround:Stars = new Stars; // Add a background large 1200 x 3000 texture
    ...
    }
    
    
    

    Here's some code I found here:

    var appScale:Number = 1;
    var appSize:Rectangle = guiSize.clone();
    var appLeftOffset:Number = 0; // if device is wider than GUI's aspect ratio, height determines scale 
    if ((deviceSize.width/deviceSize.height) > (guiSize.width/guiSize.height)) 
    { 
    appScale = deviceSize.height / guiSize.height; appSize.width = deviceSize.width / appScale;
    appLeftOffset = Math.round((appSize.width - guiSize.width) / 2);
     } // if device is taller than GUI's aspect ratio, width determines scale 
    else { appScale = deviceSize.width / guiSize.width;
     appSize.height = deviceSize.height / appScale; appLeftOffset = 0;
     }
    

    http://www.Adobe.com/devnet/air/articles/multiple-screen-sizes.html

    Ask yourself what I apply this code?

    It doesn't seem to work with the scene...

    Did you write that correctly? Your app is the landscape, and you gave the portrait for the device numbers. Did you mean 960 x 540?

    That said, you can delete all of your code and let Flash scale for you. Make sure there is an important in the Middle content and additional content on the edges in your game scene. There are three variants of working this way:

    1.

    1.1 prepare your ground at 800 x 600, the aspect ratio of the iPad and have additional content on the left and right of the stage, go far enough out to make the content be 1066 pixels wide.

    1.2 do not use any code to set the scale of the scene, the default value of "show all" is what you want.

    1.3 when you play the game on an iPad, it will show in the middle of 4:3 of the game. On an iPhone, it will show a little more, and on the broader Android, it will show even more. This extra content can be say more background, or more than a field of stars.

    2.

    2.1 define your step to 960 x 540, which is be the biggest ratio Android. Have additional content above and below the turntable, so that it reaches a height of 720.

    2.2 do not use any code to set the scale of the scene, the default value of "show all" is what you want.

    2.3 when you play Android game will be able to see exactly what was in the stage space, and the iPhone will see a little more of what was greater than one under the stage. The iPad you will see everything above and below the plate.

    3.

    3.1 prepare your ground to 840 x 540, where the Middle 720 x 472 is the important part of the scene and almost four sides of the stage is contained in the bosom of the scene, but not fundamental. Just like when dealing with security action on television.

    3.2 set the scene balance mode on 'borderless ':

    import flash.display.StageScaleMode;

    stage.scaleMode = StageScaleMode.NO_BORDER;

    3.3 now when you play the game, you will see all the height of the stage on the iPad, but will miss a little left and right, and you will see all the width of the stage on the broader Android, but will miss a little top and bottom.

    The good thing about the above approaches, is that it will work for each size of unit there, not only the one you mentioned, and all without any code.

  • Round stamp to the nearest hour

    Hi all

    I would like to turn stamp to the nearest hour. Example:

    21/01/2015 18:51-> 21/01/2015, 19:00

    21/01/2015 18:21-> 2015-21/01 18:00

    Suggestions how I can make it work properly? Thanks in advance.

    Kind regards

    Niek

    Hi Niek,

    With a Script processor, you can use this:

    var date = input1 [0];

    If (date! = null)

    {

    date.setTime (Math.round (date.getTime () / 3600000) * 3600000);

    Output 1 = date;

    }

    see you soon,

    Nick

  • Adobe LifeCycle ES2 rounding numerical value formula

    I used the ES2 to create a form for user input. On this form, there are 12 questions and each question has a radio button with a 1-6 rating system. The user is prompted to select a note in the radio button for all 12 questions and then basically the form gives an average score. It works in all the major but the score is not round to the nearest integer is not as precise as I wish it were. Could someone give me guidance on ways to fix this problem? I have no experience on coding and it's the first time I used ES2 so go easy with me, the formula I used that add up the scores of each radio button field, and then divided by 12 (it is the number of questions).

    The code I am using:
    this.rawValue = parseInt (RBQ1.rawValue) + parseInt (RBQ2.rawValue) + parseInt (RBQ3.rawValue) + parseInt (RBQ4.rawValue) + parseInt (RBQ5.rawValue) + parseInt (RBQ6.rawValue) + parseInt (RBQ7.rawValue) + parseInt (RBQ8.rawValue) + parseInt (RBQ9.rawValue) + parseInt (RBQ10.rawValue) + parseInt (RBQ11.rawValue) + parseInt (RBQ12.rawValue) 12.

    I'm really sorry not to see this at the beginning... when we think, by program, we tend to forget the precedence of the operators...

    this.rawValue = Math.round ((parseInt (RBQ1.rawValue) + parseInt (RBQ2.rawValue) + parseInt (RBQ3.rawValue) + parseInt (RBQ4.rawValue) + parseInt (RBQ5.rawValue) + parseInt (RBQ6.rawValue) + parseInt (RBQ7.rawValue) + parseInt (RBQ8.rawValue) + parseInt (RBQ9.rawValue) + parseInt (RBQ10.rawValue) + parseInt (RBQ11.rawValue) + parseInt (RBQ12.rawValue)) 12);

    You must have parentheses grouping all additions and then dividing by 12...

  • All the VM Info

    Hello

    I'm pretty new to get - view using the old wires form the master LucD I wrote the Code below, but I need to add some clarification in the code.

    LucD can you please help me.

    Need information to fetch:

    NAA Mon of each hard drive output

    Lun ID of the NAA

    VMConfigFile

    VMDKpath for each hard drive

    Size of this hard

    -------------------------------------

    Something went wrong in the code failed to get the information

    IP address (some virtual machines contains multiple IP addresses)

    network card (I love... NIC 1 etc.)

    need information of port group of DVS b/c, that some virtual machines are on DVS

    =============

    foreach($vm in (Get-View -ViewType VirtualMachine -Property Name,runtime.powerState,Guest.net,Config.Hardware.numCPU,Config.Hardware.MemoryMB,Runtime.Host,Guest.GuestFullName,Config.GuestFullName,Parent,ResourcePool,Config.Hardware.Device,Config.version,guest.toolsversionstatus)){
       # $t = Get-View $vm.Parent -Property Name,Parent
        #$path = $t.Name
        #while($t.GetType().Name -eq "Folder"){
         #   $t = Get-View $t.Parent
          #  if($t.Name -ne "vm"){
           #     $path = $t.Name + "/" + $path
            #}
        #}
        $t = Get-View $vm.ResourcePool -Property Name,Parent
        while($t.getType().Name -eq "ResourcePool"){
           $t = Get-View $t.Parent -Property Name,Parent
        }
            if($t.GetType().Name -eq "ClusterComputeResource"){
            $cluster = $t.Name
            }
            else{
                $cluster = "Stand Alone Host"
            }
        while($t.getType().Name -ne "Datacenter"){
            $t = Get-View $t.Parent -Property Name,Parent
        }
        $datacenter = $t.Name
       
        $vm.Config.Hardware.Device | where {$_.GetType().Name -eq "VirtualDisk"} |
        Select @{N="VM";E={$vm.Name}},
        @{N='powerState';E={$vm.runtime.powerState}},
        #@{N='IP';E={$add=($vm.Guest.Net | %{$_.IpAddress})}.(([string]::Join(',',$add)))},
        @{N='NumCPU';E={$vm.config.Hardware.NumCpu}},
        @{N='Memory GB';E={$vm.Config.Hardware.MemoryMB| %{[math]::Round($_/1kb,2)}}},
        @{N='VMHost';E={(Get-View -Id $vm.Runtime.Host).name}},
        @{N='GuestOS';E={$vm.Guest.GuestFullName}},
        @{N='ConfiguredOS';E={$vm.Config.GuestFullName}},
        #@{N="Folder";E={$path}},
        @{N="Cluster";E={$cluster}},
        @{N="Datacenter";E={$datacenter}},
        @{N="Scsi";E={($_.DeviceInfo.Label).BusNumber}},
        @{N="Hard Disk";E={$_.DeviceInfo.Label}},
        @{N="Disk datastore";E={$_.Backing.Filename.Split(']')[0].TrimStart('[')}},
        @{N="Disk capacity GB";E={$_.CapacityInKB| %{[math]::Round($_/1MB,2)}}},
        @{N="Disk type";E={
                if($_.Backing.GetType().Name -match "flat"){
                    "Flat"
                }
                else{
                    $_.Backing.CompatibilityMode
                }}},
       @{N="HW Version";E={$vm.Config.version}},
       @{N="Tools Status";E={$vm.guest.toolsversionstatus}},
       @{N="NIC Name";E={($vm.config.hardware.device | where {($_.DeviceInfo.Label -like "Network*")}).name}},
       @{N="Mac"; E={($vm.Config.Hardware.Device | where{$_.DeviceInfo.Label -like "Network*"}).MacAddress}},
       @{N="Portgroup"; E={($vm.Config.Hardware.Device | where{$_.DeviceInfo.Label -like "Network*"}).DeviceInfo.Summary}}
    }
    
    

    Example of output:

    output.JPG

    Try like this

    foreach ($vm in (Get-View - ViewType VirtualMachine-Name, runtime.powerState, Boulevard, Config.Hardware.numCPU, Config.Hardware.MemoryMB, Runtime.Host, Guest.GuestFullName of property,

    Config.GuestFullName, Parent, ResourcePool, Config.Hardware.Device, Config.version, guest.toolsversionstatus,

    Config.Files.VMPathName)) {}

    $t is get-view $vm. ResourcePool-name of the Parent property

    While ($t.GetType ().) (Name - eq 'ResourcePool') {}

    $t = get-view $t.Parent - the name of the Parent property

    }

    If ($t.GetType ().) {Name - eq "ClusterComputeResource")}

    $cluster = $t.Name

    }

    else {}

    $cluster = "stand alone host."

    }

    While ($t.GetType ().) Name - not "data center") {}

    $t = get-view $t.Parent - the name of the Parent property

    }

    $datacenter = $t.Name

    $vm. Config.Hardware.Device | where {$_.} GetType(). Name - eq "VirtualDisk"} |

    Select @{N = "VM"; E = {$vm. Name}},

    @{N = "powerState"; E = {$VM. Runtime.powerState}},

    @{N = "IP"; E = {[string]: join (",",($vm.)} Boulevard | %{$_. IpAddress | where {$_.} Split('.'). {Count - eq 4} | %{$_}}))}},

    @{N = "NumCPU"; {E = {$VM.config.hardware.NumCpu}}.

    @{N = 'Memory GB'; E = {$vm. Config.Hardware.MemoryMB | "% {[math]: Round($_/1kb,2)}}},"

    @{N = "$vmhost"; E = {$script: esx = Get - views - Id $vm.} Runtime.Host; {{$script: esx.name}},

    @{N = "GuestOS"; E = {$vm. Guest.GuestFullName}},

    @{N = "ConfiguredOS"; E = {$vm. Config.GuestFullName}},

    #@ {N = 'File'; E = {$path}},

    @{N = 'Cluster'; E = {$cluster}},

    @{N = 'Center'; E = {$datacenter}},

    @{N = "Scsi"; E={$_. UnitNumber}},

    @{N = 'Hard drive'; E={$_. DeviceInfo.Label}},

    @{N = 'Disc datastore'; E={$_. Backing.Filename.Split(']') [0]. TrimStart('[')}},

    @{N = "Drive GB of capacity"; E={$_. CapacityInKB | "% {[math]: Round($_/1MB,2)}}},"

    @{N = "Disc Type"; E = {}

    if($_.) Backing.GetType (). Name - match "flat") {}

    "Flat".

    }

    else {}

    $_.Backing.CompatibilityMode

    }}},

    @{N = "DeviceName"; E = {}

    if($_.) Backing.GetType (). Name - match 'raw') {}

    $_. Backing.DeviceName

    }

    else {}

    $script: lunnaa = (Get-View-Id $_.) Backing.Datastore). Info.Vmfs.Extent [0]. DiskName

    $script: lun = $script: esx. Config.StorageDevice.ScsiLun | where {$_.} {CanonicalName - eq $script: lunnaa}

    $script: lun. Descriptor of | where {$_.} ID-match "vml"} | Select Id - ExpandProperty

    }}},

    @{N = "LUN NAA"; E = {}

    if($_.) Backing.GetType (). Name - match 'raw') {}

    $lunUuid = $_. Backing.LunUuid

    $script: lun = $script: esx. Config.StorageDevice.ScsiLun | where {$_.} UUID - eq $lunUuid}

    $script: lun. CanonicalName

    }

    else {}

    $script: lunnaa

    }}},

    @{N = "LUN ID"; E = {}

    $dev = $script: esx. Config.StorageDevice.PlugStoreTopology.Device | where {$_.} LUN - eq $script: lun. Key}

    $script: esx. Config.StorageDevice.PlugStoreTopology.Path | where {$_.} Device - eq $dev. Key} |

    Select - first of all 1 - ExpandProperty LunNumber

    }},

    @{N = "VMConfigFile"; {E = {$VM.config.files.VMpathname}}.

    @{N = "VMDKPath"; E={$_. Backing.FileName}},

    @{N = "HW Version"; E = {$vm. Config.version}},

    @{N = 'Tools status'; E = {$VM. Guest.toolsversionstatus}},

    @{N = "NETWORK card name"; E = {($vm.config.hardware.device | where {($_.)})} (DeviceInfo.Label-like_"réseau_*")}). DeviceInfo.Label}},

    @{N = 'Mac'; E = {($vm.)} Config.Hardware.Device | where {$_.} ({DeviceInfo.Label - like the "Network *"}). MacAddress}},

    @{N = "Portgroup"; E = {}

    $nic = $vm. Config.Hardware.Device | where {$_.} {DeviceInfo.Label - like the "Network *"}

    [channel]: join ("," ", ())

    $nic | %{

    if($_.) DeviceInfo.Summary - notmatch 'DVSwitch') {}

    $_. DeviceInfo.Summary

    }

    else {}

    Get-view ViewType-DistributedVirtualPortgroup property name - filter @{"Key" = $_.} Backing.Port.PortgroupKey} |

    Select the name of ExpandProperty-

    }}))}}

    }

Maybe you are looking for