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
I am trying to plot a shap plot using "SHAP" library in Power BI. In Power BI desktop it working perfectly fine, but in Power BI Service it is giving me following error message.
Script Runtime Error
ModuleNotFoundError: No module named 'shap'.
Details about the error:
Activity ID: b5c8f9ab-3bc7-47cc-8bcd-832ed5ef7ed0
Request ID: 1fdb1a0c-4777-425a-930f-cfe8e887ec11
Correlation ID: f5fe634f-4b1e-e375-4859-48255c898194
Time: Wed Nov 02 2022 09:57:58 GMT+0530 (India Standard Time)
Service version: 13.0.19357.55
Client version: 2210.4.10658-train
Cluster URI: https://wabi-canada-central-b-primary-redirect.analysis.windows.net/
Solved! Go to Solution.
Hi @Rohan231 ,
It looks like you're planning to create visuals in Python.
But the SHAP library is not supported in the Power BI Service.
For more information, you can refer these documentations:
Learn which Python packages are supported - Power BI | Microsoft Learn
Python visualizations in Power BI Service | Microsoft Power BI Blog | Microsoft Power BI
Hope this helps you.
Best Regards,
Community Support Team _Yinliw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Rohan231 ,
It looks like you're planning to create visuals in Python.
But the SHAP library is not supported in the Power BI Service.
For more information, you can refer these documentations:
Learn which Python packages are supported - Power BI | Microsoft Learn
Python visualizations in Power BI Service | Microsoft Power BI Blog | Microsoft Power BI
Hope this helps you.
Best Regards,
Community Support Team _Yinliw
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!