Translate

Showing posts with label Article. Show all posts
Showing posts with label Article. Show all posts

Tuesday, June 16, 2026

Calculating the Harmonic Mean in Power BI

 I am pleased to share my latest article published on SQLServerCentral: “Calculating the Harmonic Mean in Power BI.”

In data analysis, we often use the arithmetic mean to summarize multiple values. However, the arithmetic mean may not always give the most meaningful result, especially when the values have large differences. This is where the harmonic mean becomes useful.

The harmonic mean is particularly important when we need a balanced measure across multiple values. For example, in ranking scenarios or model evaluation, we may not want one high value to hide the weakness of another value. A common example is the use of precision and recall in classification models, where the harmonic mean helps provide a more balanced evaluation.

In this article, I explain the concept of the harmonic mean using simple examples and then demonstrate how it can be calculated in Power BI. Since Power BI does not provide a direct built-in option for calculating the harmonic mean, I show a practical method using Power Query.

The article walks through the process step by step:

First, the data is loaded into Power BI. Then, an inverse value is calculated for each observation. After that, the data is grouped based on the required category, and the count and sum of inverse values are calculated. Finally, the harmonic mean is obtained by dividing the count by the sum of inverse values.

This approach is useful for analysts, BI developers, students, and anyone who wants to apply more meaningful aggregation techniques in Power BI reports.

I hope this article will be helpful for those who work with ranking data, evaluation metrics, and analytical reporting in Power BI.

Read the full article here:
Calculating the Harmonic Mean in Power BI – SQLServerCentral

#PowerBI #PowerQuery #DataAnalytics #BusinessIntelligence #SQLServerCentral #DataScience #Analytics #DAX #BIReporting

Saturday, January 6, 2024

Tuesday, August 15, 2023

Article : Learn about Data Warehousing for Analytical Needs


I started another article series at www.mssqltips.com on data warehousing. Even though there are many tools to build data warehouses, I still find there is a lack of conceptual knowledge in the community. So trying to cover that gap. So, read this What is a Data Warehouse? article and send your comments. 


Thursday, November 4, 2021

Article: Use Replication to improve the ETL process in SQL Server



As we have discussed in many articles, ETL is one of the challenging tasks in a Data Warehouse. It is important to extract data from data sources without impacting the performance of the data sources. in SQL Server, replication can be used to safeguard the performance of data sources during the ETL. Read this article Use Replication to improve the ETL process in SQL Server.

Saturday, October 2, 2021

Article: Text Classification in Azure Machine Learning using Word Vector


WEKA or Waikato Environment for Knowledge Analysis developed at the University of Waikato, New Zealand, is a good tool to perform text Information Retrieval as it has a lot of features like Term Frequency (TF). Inverse Document Frequency (IDF), NGram Tokenization, Stopwords, Stemming, Document Length. 

This latest article Text Classification in Azure Machine Learning using Word Vectors describes how the output of word vectors in weka can be used in Azure Machine learning in order to process better classification.

Following is the table of content for the article series on Azure Machine Learning.

Introduction to Azure Machine Learning using Azure ML Studio
Data Cleansing in Azure Machine Learning
Prediction in Azure Machine Learning
Feature Selection in Azure Machine Learning
Data Reduction Technique: Principal Component Analysis in Azure Machine Learning
Prediction with Regression in Azure Machine Learning
Prediction with Classification in Azure Machine Learning
Comparing models in Azure Machine Learning
Cross Validation in Azure Machine Learning
Clustering in Azure Machine Learning
Tune Model Hyperparameters for Azure Machine Learning models
Time Series Anomaly Detection in Azure Machine Learning
Designing Recommender Systems in Azure Machine Learning
Language Detection in Azure Machine Learning with basic Text Analytics Techniques
Azure Machine Learning: Named Entity Recognition in Text Analytics
Filter based Feature Selection in Text Analytics
Latent Dirichlet Allocation in Text Analytics
Recommender Systems for Customer Reviews
AutoML in Azure Machine Learning
AutoML in Azure Machine Learning for Regression and Time Series
Building Ensemble Classifiers in Azure Machine Learning
Text Classification in Azure Machine Learning using Word Vectors

Tuesday, September 21, 2021

Article : Building Ensemble Classifiers in Azure Machine Learning

A new article of the series, Building Ensemble Classifiers in Azure Machine Learning that discusses how to combine multiple classifiers. 

In ensemble Classifiers, we will look at how to perform predictions using multiple classification techniques so that it can produce better models with higher accuracy or they can avoid overfitting. This is equivalent to a patient that is referring multiple specialist doctors to diagnosis a disease rather than relies on one doctor.



The complete experiment can be found at Ensemble Classification | Azure AI Gallery 

Introduction to Azure Machine Learning using Azure ML Studio
Data Cleansing in Azure Machine Learning
Prediction in Azure Machine Learning
Feature Selection in Azure Machine Learning
Data Reduction Technique: Principal Component Analysis in Azure Machine Learning
Prediction with Regression in Azure Machine Learning
Prediction with Classification in Azure Machine Learning
Comparing models in Azure Machine Learning
Cross Validation in Azure Machine Learning
Clustering in Azure Machine Learning
Tune Model Hyperparameters for Azure Machine Learning models
Time Series Anomaly Detection in Azure Machine Learning
Designing Recommender Systems in Azure Machine Learning
Language Detection in Azure Machine Learning with basic Text Analytics Techniques
Azure Machine Learning: Named Entity Recognition in Text Analytics
Filter based Feature Selection in Text Analytics
Latent Dirichlet Allocation in Text Analytics
Recommender Systems for Customer Reviews
AutoML in Azure Machine Learning
AutoML in Azure Machine Learning for Regression and Time Series
Building Ensemble Classifiers in Azure Machine Learning


Monday, August 30, 2021

Physical Join Operators in SQL Server

Every developer knows the Logical Operators such as Inner Join, Left Outer, Right Outer Join etc in SQL Server. 


Do you how these operators work internally. This article discusses the Internals of Physical Join Operators (Nested Loops Join, Hash Match Join & Merge Join) in SQL Server.



Tuesday, August 10, 2021

Article: AutoML in Azure Machine Learning Service

AutoML is a new concept in Machine Learning where most of the steps are carried by the AutoML process. Following are the typical steps that are processed by the standard machine learning process. 


In the AutoML process, when the data is accepted all the other processes such as Data preparation, feature engineering, model tunning etc are done automatically, AutoML in Azure Machine Learning is the latest article in the Azure Machine Learning article series.  
Following are the other list of the articles in the Series. 

Introduction to Azure Machine Learning using Azure ML Studio
Data Cleansing in Azure Machine Learning
Prediction in Azure Machine Learning
Feature Selection in Azure Machine Learning
Data Reduction Technique: Principal Component Analysis in Azure Machine Learning
Prediction with Regression in Azure Machine Learning
Prediction with Classification in Azure Machine Learning
Comparing models in Azure Machine Learning
Cross Validation in Azure Machine Learning
Clustering in Azure Machine Learning
Tune Model Hyperparameters for Azure Machine Learning models
Time Series Anomaly Detection in Azure Machine Learning
Designing Recommender Systems in Azure Machine Learning
Language Detection in Azure Machine Learning with basic Text Analytics Techniques
Azure Machine Learning: Named Entity Recognition in Text Analytics
Filter based Feature Selection in Text Analytics
Latent Dirichlet Allocation in Text Analytics
Recommender Systems for Customer Reviews
AutoML in Azure Machine Learning



 

Thursday, July 8, 2021

Article: Latent Dirichlet Allocation in Text Analytics

Latent Dirichlet Allocation or LDA is a statistical technique that was introduced in 2003 from a research paper. LDA is used for topic modelling in text documents. LDA is more often analogue to PCA that we covered before. If you remember in PCA, we used to generate a single value for the existing values in a dataset. LDA will generate a topic for documents by analyzing the content of the document. This technique can be used to cluster documents as well which is an important task in text analytics.

Read the full article at Latent Dirichlet Allocation in Text Analytics

This is ToC for the Azure Machine Learning Series.

Introduction to Azure Machine Learning using Azure ML Studio














Azure Machine Learning: Named Entity Recognition in Text Analytics


Wednesday, March 10, 2021

Customizing Differential and Transaction Log backups

source: NOVAbackup

In SQL Server, we used Full, Differential and Log backups to support various needs of the database administrators. However, we used to take these backups in a defined frequency without considering the data volume of each backup. 
This article discusses how to customize your backups in order to achieve better maintenance plans for database backups.

Thursday, February 18, 2021

Elastic Jobs in Azure SQL Databases



Yesterday it was the presentation at Sri Lanka Data Community User and today is the article on Elastic Jobs in Azure SQL Databases. 
Preview feature, Elastic Jobs can be utilized to execute the same execution at multiple Azure SQL databases in multiple servers parallelly. 
This article discusses the feature along with a case. Enjoy reading. 

Monday, November 23, 2020

Model Comparison in Azure Machine Learning

We are building models in Machine Learning. How do you know these models are correct. What are the accuracy levels of these models? As we know there are a lot of parameters to verify. In the case of Classification, we use Recall, Precision, F1 measure are the most common evaluation methods apart from accuracy. In this article, it provides how can we compare models that were built in Azure Machine Learning.

Following are the other articles in the series.

Introduction to Azure Machine Learning using Azure ML Studio
Data Cleansing in Azure Machine Learning
Prediction in Azure Machine Learning
Feature Selection in Azure Machine Learning
Data Reduction Technique: Principal Component Analysis in Azure Machine Learning
Prediction with Regression in Azure Machine Learning
Prediction with Classification in Azure Machine Learning