Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi everyone,
Is it possible to change visual size or dashboard size using code?
Thanks.
Solved! Go to Solution.
Hi @ysapiyev,
As far as I know, it is not possible to directly change visual size or dashboard size programmatically with Power BI Embedded currently.
In addition, here is similar thread about building responsive dashboard view with Power BI Embedded, in which a workaround is mentioned. Could you go to check if it helps in your scenario? ![]()
Regards
I believe this is no longer true with custom layouts: https://github.com/Microsoft/PowerBI-JavaScript/wiki/Custom-Layout
Hi @ysapiyev,
As far as I know, it is not possible to directly change visual size or dashboard size programmatically with Power BI Embedded currently.
In addition, here is similar thread about building responsive dashboard view with Power BI Embedded, in which a workaround is mentioned. Could you go to check if it helps in your scenario? ![]()
Regards
It won't help in my scenario, but now I know that size of dashboards or visual can't be controlled through code. Thanks.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 10 | |
| 10 | |
| 4 | |
| 3 | |
| 3 |