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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.