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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
NgaMoon
Frequent Visitor

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"
              }
          }
      ]
    }
}
}
],

NgaMoon_0-1708575767242.png

 

1 REPLY 1
NgaMoon
Frequent Visitor

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.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors