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
Hi,
Just in case people are reading this thread and looking for potential solution, here's an article I found to create multiple measures in Power BI using Python:
https://python.plainenglish.io/creating-multiple-measures-in-power-bi-using-python-7a8cf6e200dc