Why Visualise

A chart shows patterns, trends and outliers that a table hides. In mining, visualisation is used to explore data, to present results to decision makers and to monitor them on dashboards.

Tableau

Tableau is a visual analytics tool. A user connects to a data source (Excel, SQL database, cloud), then drags fields to rows and columns to build charts without coding. Features: dimensions and measures, a wide range of charts, calculated fields, filters and parameters, dashboards and stories, maps, and publishing on Tableau Server or Cloud.

Power BI

Microsoft Power BI has three parts: Power BI Desktop (to build reports), the Power BI Service (cloud sharing) and mobile apps. Data is loaded and cleaned in Power Query, related tables form a data model, and calculations are written in DAX (Data Analysis Expressions), for example Total Sales = SUM(Sales[Amount]). It works closely with Excel, Azure and other Microsoft products.

Applications of Data Mining

  • Healthcare: disease diagnosis and prediction, patient risk grouping, hospital resource planning, drug discovery and detecting insurance fraud.
  • E-commerce and retail: market basket analysis, recommendation systems, customer segmentation, churn prediction, price optimisation and demand forecasting.
  • Finance and banking: credit scoring, loan default prediction, detection of fraudulent transactions, stock trend analysis and risk management.
  • Others: telecommunications (churn), education (student performance), manufacturing (fault prediction) and science.

Definition: Dashboard. A single screen that brings together the key charts and numbers of a business, usually updated automatically from the data source.

Table 4.6: Tableau compared with Power BI

Point Tableau Power BI
Maker Tableau (Salesforce) Microsoft
Ease of use Drag and drop, strong visuals Familiar to Excel users
Calculation language Calculated fields DAX
Cost Higher Lower, free desktop version
Strength Visual exploration Microsoft integration

Example 4.6: Growth figures for a dashboard

Problem: Quarterly sales (in lakh rupees) are 120, 135, 150 and 180. A dashboard must show the quarter-on-quarter growth, the average growth and the share of the fourth quarter.

Solution:

  1. Growth Q2 = (135 - 120) / 120 = 12.5 percent.
  2. Growth Q3 = (150 - 135) / 135 = 11.1 percent; growth Q4 = (180 - 150) / 150 = 20 percent.
  3. Average growth = (12.5 + 11.1 + 20) / 3 = 14.5 percent.
  4. Total = 120 + 135 + 150 + 180 = 585, so the share of Q4 = 180 / 585 = 30.8 percent.

Result: Growth of 12.5, 11.1 and 20 percent (average 14.5 percent); Q4 gives 30.8 percent of the year's sales.

sales = [120, 135, 150, 180]
growth = [(b - a) / a * 100 for a, b in zip(sales, sales[1:])]
print("Growth %:", [round(g, 1) for g in growth])
print("Average growth %:", round(sum(growth) / len(growth), 1))
print("Total:", sum(sales))
print("Q4 share %:", round(sales[-1] / sum(sales) * 100, 1))

Output

Growth %: [12.5, 11.1, 20.0]
Average growth %: 14.5
Total: 585
Q4 share %: 30.8

Common mistakes

  • Choosing a pie chart for many categories or a 3-D chart that distorts values.
  • Putting too many charts on one dashboard.
  • Building dashboards on uncleaned data.
  • Confusing the roles of Power BI Desktop (authoring) and the Service (sharing).

Key takeaways

  • Tableau: drag-and-drop visual analytics with dimensions and measures.
  • Power BI: Power Query, data model and DAX.
  • Healthcare, e-commerce and finance are major application areas.
  • A dashboard gives key numbers at a glance.

Practice questions

  1. What language is used for calculations in Power BI?
  2. Name two applications of data mining in finance.
  3. What is a dashboard?

Answers to the practice questions

  1. DAX (Data Analysis Expressions).
  2. Credit scoring and fraud detection.
  3. A screen combining key charts and numbers for monitoring.

Sources

  • Official BCA syllabus Data Warehousing and Mining, course code 25BCA406DS03, Unit IV