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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
JSJB
Helper I
Helper I

valueFormatter numeric on table visual

Hello,

 

I am implementing the valueFormatter on a custom visual that hosts data in a table. I have followed the documentation in this link, but it seems this only covers categorical. Formats on numeric measures in table view seem to attach themselves directly to the row values rather than being located elsewhere.

 

The example below shows a row array found within the dataview.table.rows. In this example, the fourth element of the array is a numeric measure, and the fifth element is its format string. This format string is found in every single record of the array.

[
    "s471",
    "\"Bridgerton\" cast members share behind-the-scenes stories from the hit show, plus comedian Nikki Glaser breaks down the costume drama's sexiest moments.",
    "2021-07-12T22:00:00.000Z",
    0.34014698024839163,
    "#.########EUR",
    "39 min"
]

 

 

Likewise, adding a dynamic formatting string to a measure also seems to add a column in dataviews.table.columns. This column always looks like this:

{
    "displayName": "",
    "isMeasure": true
}

And its placement in the array is also after the numeric measure (with a format), so I assume it's related to this.

 

Before implementing the valueformatter, linking rows and columns was extremely easy and intuitive. This is obviously not a major hurdle, but can it really be that a whole column is added to the metadata and every record has the format string? This is not the case when I add formatting to a date, as the formatting string is found directly within the metadata column.

0 REPLIES 0

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

Top Solution Authors