SAP Sales Forecast using Automated Machine Learning {Azure AutoML No-code/Low-code} on Microsoft Power BI (2023)

Usually, when we are on wheels, we keep an eye on the rear-view mirror and analyzing the vehicle behind is maintaining a distance or no cop car passing or following arbitrarily! Here these rear-view and side-view mirrors provide us information gathering in real-time for what happens in our back and sides. With this, we can adjust how we do things moving forward like changing lanes or keeping distance. Right!

Today, this form of business intelligence data gathering is simply too slow for any business house. What we need is the ability to find those patterns in our historical information and use it to forecast what will happen and we need to be able to do that in a faster way! Hence we need to pick up an ‘Autonomous driving features with Machine Learning capabilities for our real-time data analysis using highly accurate machine learning models. Perhaps this is one of the biggest efforts for Data and ML professionals who need to train these ML models to walk, run, and analyze with accuracy.

Let’s see how we can achieve this in the fastest and easiest way…

SAP Sales Forecast using Automated Machine Learning {Azure AutoML No-code/Low-code} on Microsoft Power BI (1)Image source: Gifer

A few weeks ago,I described the ADF and Snowflake dataflow process. Today I would like to present a sample use case on “SAP sales and demand data forecasting using AutoML on Microsoft Power BI to visualize”. A quick introduction is required on this topic before we jump to configuration straight!

Introduction

Reiterating my opening statement – This blog is to demonstrate SAP BW Sales & Demand data insights or S/4HANA Line of Business[LoB]leveraging Azure code-free automated ML-powered by Azure Machine Learning on Power BI platform. Also, I am using a similar SAP table/dataset from my previous blog on Azure Data Factory and Snowflake.

The idea is to provide the workspace and platform where Data professionals and ML professionals can collaborate together to achieve the results. Data Scientists, data analysts, and Business analysts can independently work on AutoML that enables them to build machine learning models with clicks, not code, using just their Power BI skills. I got super excited after reading about Azure AutoML during the last few months and had a discussion with my data science evangelists, Data Engineers/Pros, and aspiring ML Engineers, this platform definitely gives them a free hand to play around with any dataset of choice coming from ‘any’ source whether its SAP, salesforce, snowflake, Oracle, etc., simply have to establish the connection link using “Thor’s Bifrost” (Transportation Bridge). By the way, we are not inviting Thor or any demigods except data here to run predictions.

SAP Sales Forecast using Automated Machine Learning {Azure AutoML No-code/Low-code} on Microsoft Power BI (2)

We know that Power BI offers a simple and powerful ETL tool that enables analysts to prepare data for further analytics. You invest significant effort in data cleansing and preparation, creating datasets that can be used across your organization. Now bring AutoML features is a game-changer from my perspective since it enables you to leverage the dataset for building machine learning models directly in Power BI without jumping or connecting on other ML platforms. The full lifecycle for creation, hosting, and deployment of the ML models is managed by Power BI, without any additional dependencies.

> One-stop-shop for all Data professionals!


A big question came to my mind while reading AutoML documentation, earlier –
“Will AutoML replace data scientists or ML Engineers?”
The answer was straight No!
While AutoMLs are good at building models, they are still not capable of doing most of a data scientist’s job but offload some of the manual work and speed up the overall process and this is what today’s business required to adopt.

Let’s see the motivation, advantages, uses, and comparison of various tools on AutoML further.


Motivation for AutoML:

  • AutoML is filling the gap between “supply” and “demand” in the Data Science market. More companies nowadays either start collecting data, or they want to realize the potential of collected data: they want to get a value from it. On the other hand, there are no too many Data Scientists with a propper background to fulfill the demand, so the gap arises. AutoML could potentially fill this gap. AutoML will save the time of the Data Science team and AutoML outperforms the average Data Scientist.


Advantages of AutoML:

  • Implement ML solutions without extensive programming and platform knowledge.
  • Definitely saves a lot of time and resources
  • Leverage data science best practices available esp. choosing the ML models
  • Provides agile problem-solving
  • Power of ML accessible to everybody

When to use AutoML:
Classify, Regression, Forecasting, Clustering, Recommendation, Anomaly detection, Ranking

  • AutoML is a productivity-enhancing capability aimed at automating the ML learning code. This frees up time to focus on the broader aspects of the end-end ML application. That makes it a productivity tool for Data Scientists – not their replacement
  • Data scientists need an end-end platform to aid in the development of real-world ML solutions. This platform needs the capability to manage the lifecycle of ML models and should allow easy integration of AutoML productivity-enhancing tooling as well.


Machine learning as a service (MLaaS)
is an umbrella definition of various cloud-based platforms that cover most infrastructure issues such as data pre-processing, model training, and model evaluation, with further prediction. Prediction results can be bridged with your internal IT infrastructure through REST APIs.

MLaaS Comparsion:
This usually helps Data professionals and ML Engineers before they adopt any tool and gives them a detailed awareness of the tool’s capabilities while picking up the right ML model and solution for their business needs.

Providers

Microsoft

Amazon

Google

IBM

ML Models
Azure ML Studio
Amazon AutoML
Cloud AutoML
Watson ML
  • Classification
YesYesYesYes
  • Regression
YesYesYesYes
  • Clustering
YesYes
  • Recommendation
Yes
  • Ranking
YesYes
  • Anomaly detection
Yes
  • Supported Framework
TensorFlow, Sci-kit-learn, MS cognitive toolkit, Spark MLTensorFlow, MXNet, Keras, Gluon, Pytorch, Caffe2, Chainer, TorchTensorFlow, Sci-kit-learn, XGBoost, KerasTensorFlow, Spark, Sci-kit-learn, XGBoost, IBM SPSS, PMML

SAP Sales Forecast using Automated Machine Learning {Azure AutoML No-code/Low-code} on Microsoft Power BI (3)SAP Sales Forecast using Automated Machine Learning {Azure AutoML No-code/Low-code} on Microsoft Power BI (4)source: Forbes whitepaper

These tools are essential but strategy and the business requirement are vital.

SAP Sales Forecast using Automated Machine Learning {Azure AutoML No-code/Low-code} on Microsoft Power BI (5)

So far we understood the definition and types of AutoML providers market, let’s see the pros and cons as well!

Pros

  • Low development and maintenance cost for running
  • No-code at all
  • Ease and accessibility of use
  • Cloud-enabled, low resource consumption
  • Implement ML solutions without extensive programming knowledge
  • Leverage data science best practices
  • Provide agile problem-solving
  • Featurization is available by default in AutoML

Cons

  • Non-optimal performance with flaws in datasets
  • Not suitable for very large & complex datasets or issues in datasets
  • Not a preferred solution for too small datasets.
  • Not so flexible for ML Experts

SAP Sales Forecast using Automated Machine Learning {Azure AutoML No-code/Low-code} on Microsoft Power BI (6)

10-Steps to turn SAP Data into AutoML Model

This configuration runs with the following steps on Automated machine learning using dataflows that are hosted on Power BI Premium and Embedded capacities only.

  1. DATA Selection: choose SAP Sales Data on SAP BW or HANA for ML Analysis
  2. Create the workspace on the Power BI dashboard
  3. Create the Dataflow on the workspace
  4. Create the SAP Connection setting and validate
  5. Push tables into a dataset to feed the dataflow
  6. Create a dataflow with the input data
  7. Create and train a machine learning model
  8. Select the data fields for the ML Model
  9. Apply the model to a dataflow entity
  10. Using the scored output from the model in a Power BI Dashboard

Note, SAP Sales forecasting is typically split into two categories: quantitative and qualitative.
We’ll use quantitative based on online and in-store sales forecasting in this ML analysis.
AutoML in Power BI integratesAutomated MLfromAzure Machine Learningto create your ML models. However, you don’t need an Azure subscription to use AutoML in Power BI. The process of training and hosting the ML models is managed entirely by the Power BI service.

SAP Sales Forecast using Automated Machine Learning {Azure AutoML No-code/Low-code} on Microsoft Power BI (7)Source: Microsoft documentation

1. DATA Selection: choose SAP Sales Data on SAP BW or HANA for ML Model building

  • Direct Table Access – Select SAP Custom Table ZSAPSALESDATA with 100K Records on SAP BW 7.5 Application used by multiple BW infocubes for querying SAP Sales & Demand data.
  • Infocube Access – We can leverage SAP BW InfoCube since it’s primarily used to store transaction data. They cannot store master data. For creating/defining summarized reports, you predominantly use SAP BW InfoCubes.
  • The other option, you can pick and choose VBS* Sales Tables from ERP or S/4HANA as well for dataset exaggerations here depending on SAP system availability.
  • On the current BW system – Run Transaction: SE16 to validate/view the header and data structure of the selected custom table.
  • You can leverage the Sales dataset provided on the Github link in the sources section.

SAP Sales Forecast using Automated Machine Learning {Azure AutoML No-code/Low-code} on Microsoft Power BI (8)SAP Sales Forecast using Automated Machine Learning {Azure AutoML No-code/Low-code} on Microsoft Power BI (9)

  • Custom infoCube can be leveraged as well. In my case I used table directly but this option works well.

SAP Sales Forecast using Automated Machine Learning {Azure AutoML No-code/Low-code} on Microsoft Power BI (10)

2. Create the workspace on the Power BI dashboard

  • Click on Left Panel “My workspace” > Create a workspace
    (as shown on the below screen)

SAP Sales Forecast using Automated Machine Learning {Azure AutoML No-code/Low-code} on Microsoft Power BI (11)

  • Provide the name of a workspace – “SAP-Demo-Sales-Forecaster” and Description(Optional) And press the Save button

SAP Sales Forecast using Automated Machine Learning {Azure AutoML No-code/Low-code} on Microsoft Power BI (12)

  • Ensure under the new workspace setting, enable premium capacity, and select small data storage format for demo purpose.

SAP Sales Forecast using Automated Machine Learning {Azure AutoML No-code/Low-code} on Microsoft Power BI (13)

3. Create the Dataflow on the workspace

  • Click on +New > Select “Dataflow”

SAP Sales Forecast using Automated Machine Learning {Azure AutoML No-code/Low-code} on Microsoft Power BI (14)

  • Click on “Add new entities” under Define new entities (as shown below)

SAP Sales Forecast using Automated Machine Learning {Azure AutoML No-code/Low-code} on Microsoft Power BI (15)

4. Create the SAP Connection setting and validate

  • Select “SAP BW Application Server” under Data Sources as shown below

SAP Sales Forecast using Automated Machine Learning {Azure AutoML No-code/Low-code} on Microsoft Power BI (16)

  • Download and install On-premise data gateway software on your system before moving to the next step. (Link to download gateway software)
  • Fill SAP BW Application Server IP Details, SAP system number, SAP client ID along with Connection Credentials for on-premise gateway name (ensure on-prem gateway is up and running), fill up your SAP username and password, click on Next to proceed

SAP Sales Forecast using Automated Machine Learning {Azure AutoML No-code/Low-code} on Microsoft Power BI (17)

5. Push tables into a dataset to feed the dataflow

  • Once the connection is established, a list of SAP BW Objects is visible.
  • Select the Infocube or Table ZSAPSALESDATA to fetch into a dataset.

SAP Sales Forecast using Automated Machine Learning {Azure AutoML No-code/Low-code} on Microsoft Power BI (18)

  • Pick up Table ZSAPSALESDATA and click “Transform data” to proceed further with the analysis

SAP Sales Forecast using Automated Machine Learning {Azure AutoML No-code/Low-code} on Microsoft Power BI (19)

6. Create a dataflow with the input data

  • Save Query under the name: SAPSalesForecasterQuery
  • Save your dataflow name: sap sales forecaster intent
    SAP Sales Forecast using Automated Machine Learning {Azure AutoML No-code/Low-code} on Microsoft Power BI (20)

7. Create and train a machine learning model

  • The first step for creating our machine learning model is to identify the historical data including the outcome field that you want to predict. The model will be created by learning from this data.
  • Click on “Add a Machine learning Model

SAP Sales Forecast using Automated Machine Learning {Azure AutoML No-code/Low-code} on Microsoft Power BI (21)

  • Select the Entity and Outcome field – SalesChannel – Online | Offline
  • Select SalesChannel as the ‘Outcome field’ value and then selectNext.

SAP Sales Forecast using Automated Machine Learning {Azure AutoML No-code/Low-code} on Microsoft Power BI (22)

  • Choose a model – Binary Prediction, this model will provide the future insights for online sales prediction. In this case since we’re predicting a binary outcome of whether a user will make a purchase online or offline(in-store), Binary Prediction is recommended.
  • Select “Online” in target outcome
  • Click on Next

SAP Sales Forecast using Automated Machine Learning {Azure AutoML No-code/Low-code} on Microsoft Power BI (23)

8. Select the data fields for AutoML Model

  • Select the data fields for ML Model to study, by default some of the fields are selected based on data review by Azure AutoML alogrithm
  • Power BI does a preliminary scan of a sample of your data and suggests the inputs that may produce more accurate predictions. If Power BI doesn’t recommend a field, an explanation would be provided next to it.

SAP Sales Forecast using Automated Machine Learning {Azure AutoML No-code/Low-code} on Microsoft Power BI (24)

  • In the final step, we must provide a name for our model.Training Time is default for now. The longer you train your model, the more accurate the results.
  • You can choose to reduce the training time to see quick results or increase the amount of time spent in training to get the best model.
  • Click on the “Save and train” Button as shown below screenshot
  • The training process will begin by sampling and normalizing your historical data and splitting your dataset.

SAP Sales Forecast using Automated Machine Learning {Azure AutoML No-code/Low-code} on Microsoft Power BI (25)

9. Apply the model to a Dataflow entity

  • Depending on the size of the dataset, the training process can take anywhere from a few minutes to the training time selected at the previous screen.
  • You can confirm that the model is being trained and validated through the status of the dataflow. This appears as a data refresh in progress in theDataflowstab of the workspace.
  • Click on the “View Training Report” link as shown below.
  • Once the model training is completed, the dataflow displays an updated refresh time. You can confirm that the model is trained, by navigating to theMachine learning modelstab in the dataflow. The model you created should show status asTrainedand theLast Trained timeshould now be updated.

SAP Sales Forecast using Automated Machine Learning {Azure AutoML No-code/Low-code} on Microsoft Power BI (26)

10. Using the scored output from the model in a Power BI report

  • To review the model validation report, in the Machine learning models tab, select the View training report button in the Actions column for the model. This report describes how your machine learning model is likely to perform.
  • You can use theProbability Thresholdslicer on the Model Performance page to examine its influence on the Precision and Recall for the model.

SAP Sales Forecast using Automated Machine Learning {Azure AutoML No-code/Low-code} on Microsoft Power BI (27)

SAP Sales Forecast using Automated Machine Learning {Azure AutoML No-code/Low-code} on Microsoft Power BI (28)

  • Select theApply modelbutton at the top of the report to invoke this model. In theApplydialog, you can specify the target entity that has the source data to which the model should be applied.
  • Click on Save and apply

SAP Sales Forecast using Automated Machine Learning {Azure AutoML No-code/Low-code} on Microsoft Power BI (29)

  • To use the scored output from your machine learning model you can connect to your dataflow from the Power BI desktop, using the Dataflows connector.
  • The Prediction report for sap sales forecaster entity can now be used to incorporate the predictions from your model in Power BI reports for creating BI Apps for Data analysis.
  • You can save the report and use it again after the data refresh from SAP

SAP Sales Forecast using Automated Machine Learning {Azure AutoML No-code/Low-code} on Microsoft Power BI (30)

You can share this AutoML generated report using the “share report” option.
So things finally looks good on dashboard

SAP Sales Forecast using Automated Machine Learning {Azure AutoML No-code/Low-code} on Microsoft Power BI (31)

SAP Sales Forecast using Automated Machine Learning {Azure AutoML No-code/Low-code} on Microsoft Power BI (32)

Thank you for reading!

Reference/Sources/further learning:

Disclaimer
These are my personal opinions and thoughts. This does not represent any formal opinions, POVs, inputs, product road-maps, etc. from my current or past employers or partners or/and any Clients.

FAQs

Is Power BI good for machine learning? ›

AutoML in Power BI enables data analysts to use dataflows to build machine learning models with a simplified experience, using just Power BI skills. Most of the data science behind the creation of the ML models is automated by Power BI.

What languages does Azure ML use? ›

Standard ones are C#, Java, JavaScript, and Python. Build intelligent applications using pre-trained models available through REST API and SDK.

How do I use Microsoft Azure for machine learning? ›

The steps you'll take are:
  1. Connect to your Azure Machine Learning workspace.
  2. Create your compute resource and job environment.
  3. Create your training script.
  4. Create and run your command job to run the training script on the compute resource, configured with the appropriate job environment.
4 days ago

What are the advantages of AutoML? ›

AutoML helps users transfer data to training algorithms and automatically search for the best neural network architecture for a given issue. This saves data science practitioners a huge amount of time. Often, tasks that would take hours to complete can be accomplished in minutes using AutoML.

Is AutoML free? ›

Sagemaker AutoPilot is technically free on its own, although users will pay for the AWS compute resources used to train models. What tasks do AutoML tools automate?

Does Azure machine learning require coding? ›

Azure Machine Learning designer: use the designer to train and deploy machine learning models without writing any code.

Which programming language is best for Azure? ›

Azure supports the most popular programming languages in use today, including Python, JavaScript, Java, . NET and Go.

What is automated ML in Azure? ›

Azure AutoML is a cloud-based service that can be used to automate building machine learning pipelines for classification, regression and forecasting tasks. Its goal is not only to tune hyper-parameters of a given model, but also to identify which model to use and how to pre-process the input dataset.

What companies use Azure machine learning? ›

Who uses Azure Machine Learning?
CompanyWebsiteCompany Size
V2Solutions, Inc.v2solutions.com500-1000
California State University-Stanislauscsustan.edu1000-5000
Lenovo Group Ltdlenovo.com.cn1000-5000
Blackfriars Groupblackfriarsgroup.com>10000
1 more row

Is Azure machine learning free? ›

Please note, there is no additional charge to use Azure Machine Learning.

Is Azure good for machine learning? ›

Azure machine learning tool is one of the best tools available in the market to do predictive analysis. we are using it for the last 3 years in our organization. it has made model training and prediction very easy for our team.

What are the limitations of AutoML? ›

The main criticisms of AutoML solutions are: 1 Control - Can't alter generated solutions. 2 It doesn't do enough - Most of the work is elsewhere. 3 Quality of results - Users don't want to be held back.

What AutoML Cannot do? ›

AutoML cannot replace a data scientist's job; instead, it may help speed up a data scientist's work. AutoML (Automated Machine Learning) automates certain key components of the machine learning pipeline.

Which ML model is best for prediction? ›

The most widely used predictive models are:
  • Decision trees: Decision trees are a simple, but powerful form of multiple variable analysis. ...
  • Regression (linear and logistic) Regression is one of the most popular methods in statistics. ...
  • Neural networks.

Is AutoML ready for business? ›

AutoML has the ability to make it possible for business users within an organization to understand, prepare, build, develop, deploy, and monitor ML applications for challenging workflows.

What are some of the pros and cons of AutoML? ›

The pros and cons
  • Con: You get less insights on your data. ...
  • Pro: You get quicker results. ...
  • Con: AutoML is inflexible. ...
  • Pro: You're less likely to be outdated. ...
  • Con: Running cost might be too high when you scale.
Jul 31, 2020

What algorithm does AutoML use? ›

AutoML Systems

AutoWEKA is an approach for the simultaneous selection of a machine learning algorithm and its hyperparameters; combined with the WEKA package it automatically yields good models for a wide variety of data sets.

Which are examples of AutoML systems? ›

AutoML Platforms
  • Google Cloud AutoML. Google has launched several AutoML products for building our own custom machine learning models as per the business needs, and it also allows us to integrate these models into our applications or websites. ...
  • Microsoft Azure AutoML. ...
  • H2O.ai. ...
  • TPOT. ...
  • DataRobot. ...
  • Auto-Sklearn. ...
  • MLBox.

Is AutoML used in industry? ›

A Forrester study found that automated machine learning (AutoML) has been adopted by 61% of data and analytics decision makers in companies using AI, with another 25% of companies saying they'll do so in the next year. Automated machine learning (AutoML) automates repetitive and manual machine learning tasks.

How can I learn AutoML? ›

Free Online Resources To Learn AutoML
  1. AutoML Vision API Tutorial.
  2. AutoML Natural Language API Tutorial.
  3. Using AutoML To Predict Taxi Fares.
  4. AutoML Tables Tutorial Notebook.
  5. AutoML capabilities of H2O library.
  6. Auto ML with Auto-Keras.
  7. Creating Machine Learning Models With AutoML.
Aug 21, 2020

What is Azure AutoML? ›

Azure AutoML is a cloud-based service that can be used to automate building machine learning pipelines for classification, regression and forecasting tasks. Its goal is not only to tune hyper-parameters of a given model, but also to identify which model to use and how to pre-process the input dataset.

What are the different types of monitoring in Azure? ›

Microsoft combined three unique services—Azure Monitor, Log Analytics, and Application Insights—under the umbrella of Azure Monitor to provide powerful end-to-end monitoring of your applications and the components they rely on. Log Analytics and Application Insights are now features of Azure Monitor.

What can be monitored using Azure monitor? ›

Use Azure Monitor to monitor these types of resources in Azure, other clouds, or on-premises:
  • Applications.
  • Virtual machines.
  • Guest operating systems.
  • Containers.
  • Databases.
  • Security events in combination with Azure Sentinel.
  • Networking events and health in combination with Network Watcher.
5 days ago

Is Azure China operated by Microsoft? ›

Microsoft Azure operated by 21Vianet (Azure China) is a physically separated instance of cloud services located in China. It's independently operated and transacted by Shanghai Blue Cloud Technology Co., Ltd. ("21Vianet"), a wholly owned subsidiary of Beijing 21Vianet Broadband Data Center Co., Ltd..

What are the key steps in the AutoML process? ›

There are generally eight steps in the AutoML process: data ingestion, data preparation, data engineering, model selection, model training, hyperparameter tuning, model deployment, and model updates.

Which steps can automate by AutoML? ›

More specifically, here are some of the steps of the machine learning process that AutoML can automate, in the order they occur in the process:
  • Raw data processing.
  • Feature engineering and feature selection.
  • Model selection.
  • Hyperparameter optimization and parameter optimization.

How do you use AutoML model? ›

The workflow for training and using an AutoML model is the same, regardless of your datatype or objective:
  1. Prepare your training data.
  2. Create a dataset.
  3. Train a model.
  4. Evaluate and iterate on your model.
  5. Get predictions from your model.
  6. Interpret prediction results.

What is the main purpose of using the Azure Mobile App? ›

Azure Mobile Apps (also known as the Microsoft Data sync Framework) gives enterprise developers and system integrators a mobile-application development platform that's highly scalable and globally available. The framework provides your mobile app with: Authentication. Data query.

Is Azure ML any good? ›

Azure machine learning tool is one of the best tools available in the market to do predictive analysis. we are using it for the last 3 years in our organization. it has made model training and prediction very easy for our team.

Where can you use the AutoML functionality? ›

All the functionality of AutoML Tables and new features are available on the Vertex AI platform.
...
Model training
  • Linear.
  • Feedforward deep neural network.
  • Gradient Boosted Decision Tree.
  • AdaNet.
  • Ensembles of various model architectures.

References

Top Articles
Latest Posts
Article information

Author: Errol Quitzon

Last Updated: 07/14/2023

Views: 6429

Rating: 4.9 / 5 (79 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Errol Quitzon

Birthday: 1993-04-02

Address: 70604 Haley Lane, Port Weldonside, TN 99233-0942

Phone: +9665282866296

Job: Product Retail Agent

Hobby: Computer programming, Horseback riding, Hooping, Dance, Ice skating, Backpacking, Rafting

Introduction: My name is Errol Quitzon, I am a fair, cute, fancy, clean, attractive, sparkling, kind person who loves writing and wants to share my knowledge and understanding with you.