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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Nishantjain
Continued Contributor
Continued Contributor

Utilization rate

All, 

 

I have build a custom visual that works as expected. Now I am trying to use the formatting utility and have following all the intructions in the link https://github.com/Microsoft/powerbi-visuals-utils-formattingutils/blob/HEAD/docs/usage/installation.... I have followed every single step in this guide but when I try to import the valueFormatter, I get the error "Namespace powerbi.extensibility has no exported member utils"

 

Capture.PNG

 

  //pbiviz.json
    "externalJS": [
        "node_modules/powerbi-visuals-utils-typeutils/lib/index.js",
        "node_modules/powerbi-visuals-utils-dataviewutils/lib/index.js",
        "node_modules/powerbi-visuals-utils-formattingutils/lib/index.js"
    ]
//tsconfig.json
{   
    "compilerOptions": {
        "allowJs": false,
        "emitDecoratorMetadata": true,
        "experimentalDecorators": true,
        "target": "es6",
        "sourceMap": true,
        "outDir": "./.tmp/build/",
        "moduleResolution": "node",
        "declaration": true,
        "lib": [
            "es2015",
            "dom"
        ]
    },
    "files": [
        "./src/visual.ts",
        "node_modules/powerbi-visuals-utils-typeutils/lib/index.d.ts",
        "node_modules/powerbi-visuals-utils-dataviewutils/lib/index.d.ts",
        "node_modules/powerbi-visuals-utils-formattingutils/lib/index.d.ts"
    ]
}

 

 

I am sure I am doing something wrong, and would appreciate if you could help me fix this

 

Thanks

Nishant

 

0 REPLIES 0

Helpful resources

Announcements
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.

March Power BI Update Carousel

Power BI Community Update - March 2026

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