top of page

How to apply ML methods in power bi

Machine learning algorithms are widely used for data analysis nowadays. These algorithms collect the features and predict the trend in data. Microsoft Power BI provides several ways to use machine learning methods for predictive data analysis. To apply ML methods into the Power BI reports, we can build the ML models in Azure machine learning studio, Power BI workspace or Power BI Python script.

[/et_pb_text][et_pb_text _builder_version=”4.8.1″ header_2_font_size=”22px” hover_enabled=”0″ sticky_enabled=”0″]

Azure machine learning studio[/et_pb_text][et_pb_text _builder_version=”4.8.1″ header_2_font_size=”22px” hover_enabled=”0″ sticky_enabled=”0″]

When using Azure machine learning studio for model building, we can choose to write our own code in Jupyter notebook, or use the prepared assets in designer and autoML. No matter which way we choose, we need a compute instance first by clicking Compute at the sidebar menu. The difference between running the code in Azure notebook and in the local machine is that, using Jupyter notebook in Azure requires the information about which subscription, compute, workspace and experiment to use. This information should be written in Jupyter Notebook cells. The result of the training process will be shown at experience — runs.

In the designer, different components respond for data preparing, data training, model evaluation, and score. We can simply drag and drop these components to canvas step by step and fill some conditions in settings, then deploy the model. Using automated ML is simpler, since we don’t need to decide which ML algorithm to use. We can select the dataset, create or generate the experiment then choose the task type of the training. The system will train the data using different algorithms. We can find the training results at the model tab and deploy the best model for our dataset. After the model is trained and deployed, it can be consumed for power bi. Select transform data from power bi and then AI machine learning at AI Insights. Then we can find all the models we deployed in Azure machine learning studio. Select a model, then we can get the predicted value by this model.

[/et_pb_text][et_pb_image _builder_version=”4.8.1″ _module_preset=”default” title_text=”Blogpost 210209_1″ src=”” hover_enabled=”0″ sticky_enabled=”0″][/et_pb_image][et_pb_text _builder_version=”4.8.1″ header_2_font_size=”22px” hover_enabled=”0″ sticky_enabled=”0″]

Power Bi dataflow[/et_pb_text][et_pb_text _builder_version=”4.8.1″ header_2_font_size=”22px” hover_enabled=”0″ sticky_enabled=”0″]

Power BI workspace also provides auto ML methods. By selecting dataflow under new at power bi workspace, we can create new entities and import training and test dataset. Next step is to select Machine learning model and choose the training data, predicted column, the related training columns, and training time. The training algorithms can be changed at another training model. The longer you train the model, normally the better prediction result it has. After training is finished, the predicted result can import to Power BI reports by get data—power bi dataflows. [/et_pb_text][et_pb_image _builder_version=”4.8.1″ _module_preset=”default” title_text=”Blogpost 210209_2″ src=”” hover_enabled=”0″ sticky_enabled=”0″][/et_pb_image][et_pb_text _builder_version=”4.8.1″ header_2_font_size=”22px” hover_enabled=”0″ sticky_enabled=”0″]

Python script[/et_pb_text][et_pb_text _builder_version=”4.8.1″ header_2_font_size=”22px” hover_enabled=”0″ sticky_enabled=”0″]

Python script is another option to build a machine learning model in Power BI. The machine learning algorithm library such as scikit-learn and data process library pandas are supported by power bi. Select python script in transform data, then we can implement the code for generating the prediction data.

All in all, we can write our own code or use auto ML model to apply machine learning algorithms in Power BI. Azure machine learning studio creates the weight of the model we choose, and Power BI workspace generates the predicted data directly. Writing our own code provides more flexibility, while automated ML methods are easy to use for those who don’t want to code.

[/et_pb_text][et_pb_text _builder_version=”4.8.1″ header_2_font_size=”22px” hover_enabled=”0″ sticky_enabled=”0″]

Need support implementing machine learning functionality in your Power Bi environment?[/et_pb_text][et_pb_text _builder_version=”4.8.1″ header_2_font_size=”22px” hover_enabled=”0″ sticky_enabled=”0″]

At HUBSTER.S we can help you achieve your Organizational Data Strategy by building the solution you need to connect different areas of your business and explore endless possibilities of an integrated self-service BI system. Our employees are experts in Business Intelligence, Data Analytics, Data Warehousing, Machine Learning, Production Management, Finance and Controlling. If you need support in the implementation of your BI or Analytics project, please contact us at any time! [/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row _builder_version=”4.4.8″][et_pb_column type=”4_4″ _builder_version=”4.4.8″][et_pb_divider color=”#74c2d2″ _builder_version=”4.4.8″][/et_pb_divider][/et_pb_column][/et_pb_row][/et_pb_section][et_pb_section fb_built=”1″ _builder_version=”4.4.8″][et_pb_row column_structure=”1_3,2_3″ _builder_version=”4.4.8″ max_width=”862px” max_width__hover_enabled=”on|desktop”][et_pb_column type=”1_3″ _builder_version=”4.4.8″ custom_padding=”0px||0px|27px|false|false”][et_pb_image src=”” alt=”Linus Trips HUBSTER.S” title_text=”Qianyu_Chen” _builder_version=”4.8.1″ max_width_tablet=”30%” custom_margin=”|||0px|false|false” custom_margin_tablet=”” custom_margin_phone=”||-26px|0px|false|false” custom_margin_last_edited=”on|phone” custom_padding=”|||0px|false|false” hover_enabled=”0″ module_alignment_tablet=”left” sticky_enabled=”0″][/et_pb_image][/et_pb_column][et_pb_column type=”2_3″ _builder_version=”4.4.8″][et_pb_blurb title=”Qianyu Chen” _builder_version=”4.8.1″ custom_margin=”36px||||false|false” hover_enabled=”0″ sticky_enabled=”0″]

Qianyu Chen ist Solution Architect für Data Analytics und Machine Learning.[/et_pb_blurb][et_pb_blurb use_icon=”on” font_icon=”%%153%%” icon_color=”#303344″ icon_placement=”left” use_icon_font_size=”on” icon_font_size=”20px” _builder_version=”4.8.1″ header_text_align=”left” custom_margin=”||30px||false|false” animation=”off” link_option_url=”” hover_enabled=”0″ body_text_align_tablet=”center” body_text_align_phone=”center” body_text_align_last_edited=”on|phone” text_orientation_tablet=”left” text_orientation_phone=”left” text_orientation_last_edited=”on|tablet” module_alignment_tablet=”center” module_alignment_phone=”” module_alignment_last_edited=”on|tablet” sticky_enabled=”0″][/et_pb_blurb][/et_pb_column][/et_pb_row][/et_pb_section]

#azure #Pythonscript #dataflow #PowerBI #machinelearning #HUBSTERS

Aktuelle Beiträge

Alle ansehen

HUBSTER.S ist Ihr Partner wenn es um die Realisierung von Projekten in den Bereichen Business Intelligence, Operational Intelligence und Industrial Analytics geht. 

Join Us on the Journey

  • LinkedIn

© 2023 by HUBSTER.S GmbH


Hohe Heide 8

97506 Grafenrheinfeld - Deutschland

+49 151 61573568

bottom of page