Forum Discussion
Using Python Instead of Measures
- 7 years ago
Hey Anonymous ,
I would not consider it a shame, as DAX is a "query language", whereas python is a "general purpose" programming language of course with great data processing support eg. pandas, ... not to mention all the things possible if we are considering more advanced algorithms.
But DAX is designed to wade through billions, trillions of rows in real time, meaning a user changes the slicer selection.
Personally I'm / we are (at enterprise level) using python to create more "composed" visuals, where the composition is more important than the interactivity provided by the default visuals that are based on d3.js.
From an enterprise perspective we are not using python from within Power BI for data transformation directly, but of course python can be used together with Azure Databricks, providing tremendous possibilities :-)
Regards,
Tom
When using python to create a visual the data is dynamically calculated based upon your slicers. Is there a way to get the data from a python visual and show it in a table, so that table dynamically changes with the visual?
Hey,
currently it's not possible to pass data from a python or r script visual back to Power Bi so that the data from the visula can be used inside a table or matrix viusal.
But maybe this article will provide you with some ideas:
https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.pyplot.table.html
Regards,
Tom