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
anagnostes
Frequent Visitor

Drill Down by code in PowerBI-JavaScript

 Hi,

 

I was looking in the PowerBI-JavaScript library for the possibility to Drill Down / Drill Up and Expand by javascript own code in the visuals objects, but couldn't find it. Is it possible to do it? or maybe as a feature request?

 

Now that it is possible to hide the visuals headers, that is really nice by the way, it would be great if we could apply drills/expands as we can apply filters when we are using javascript code.

 

Thank you.

2 REPLIES 2
v-micsh-msft
Microsoft Employee
Microsoft Employee

Hi @anagnostes,

 

The available things that could be done through JavaScripts is listed in the following link:

 

https://github.com/Microsoft/PowerBI-JavaScript/wiki

 

You may take a look at the commands part, which is available to define additional commends for the visual, but currently it is only available for Context menu and Options menu.

https://github.com/Microsoft/PowerBI-JavaScript/wiki/Menu-Commands-Extension

 

Regards,

Michael

 

Hi all,

 

After download the source code from Github as suggested in this community forum, run the application with ng serve -o and also run the commands


npm install --save-dev @angular/cli@latest but it throws the error like-

Local workspace file ('angular.json') could not be found.
Error: Local workspace file ('angular.json') could not be found.
at WorkspaceLoader._getProjectWorkspaceFilePath (RND\PowerBI-JavaScript-master\PowerBI-JavaScript-master\demo\node_modules\@angular\cli\models\workspace-loader.js:37:19)

So, can anyone help me how to run this application

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.