Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago

Rename Meansure Data

Hello everyone,

I create a custom visuals, My 2nd dataroles have a kind of Measure. and because this field has a state of Sum, its name automatically starts with Sum of. for example Sum of Quantity. This is quite time-consuming when I want to change the names of many fields to the same name as the original Quantity. Is there an attribute that would help me do this?
Here is my capabilities code
"dataRoles": [
    {
      "displayName": "Category Data",
      "name": "category",
      "kind": "Grouping"
    },
    {
      "displayName": "Measure Data",
      "name": "measure",
      "kind": "Measure"
    }
],
"dataViewMappings": [
    {
      "categorical": {
          "categories": {
              "for": {
                  "in": "category"
              }
},
      "values": {
          "select": [
              {
                  "bind": {
                      "to": "measure"
              }
          }
      ]
    }
}
}
],

 

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hello everyone, I really want to know how to automatically remove the "sum of" in the name to only get the name of the field I drag in. I hope everyone knows how to help me.