- Getting Started
- Administration Guide
-
User Guide
- An Introduction to Wyn Enterprise
- Document Portal for End Users
- Data Governance and Modeling
- Working with Resources
- Working with Reports
- Working with Dashboards
- View and Manage Documents
-
Understanding Wyn Analytical Expressions
- Syntax
- Measures and Calculated Columns
- Operators
- Functions
- Statements
-
Use Cases
- Use Case 1 - Actual Sales Profit
- Use Case 2 - Transaction Analysis per Customer
- Use Case 3 - Categorize fields based on calculations
- Use Case 4 - Cumulative Analysis
- Use Case 5 - RFM Model and Customer Value Analysis
- Use Case 6 - Correlation analysis
- Use Case 7 - Pareto analysis
- Use Case 8 - Difference analysis for any time period
- Use Case 9 - Sum by Product
- Best Practices
- Limitations
- Glossary
- Case...when Syntax
- Section 508 Compliance
- Subscribe to RSS Feed for Wyn Builds Site
- Developer Guide
Use Case 6 - Correlation analysis
Case 6: Correlation analysis
Requirement
In most sales data analysis, the user wants to perform correlation analysis, such as the data analysis of purchasing product A and product B at the same time, including sales amount, sales quantity, percentage of sales, even the association of other more complex conditions, such as customer type, signing time, delivery time, etc., to discover the connection between different products, to match recommendations and sales to promote sales.
In this example, we will take the correlation analysis based on purchased products.
Steps for creating a dashboard
Drag a Pivot table and drag Product Name to Rows.
Add a measure on the table 'FactInternetSales'.
Input the expression given below and save it as Value. So, the name of the Measure will be Value.
countx('FactInternetSales','FactInternetSales'[SalesAmount])
This expression will give the count of the number of rows having non-blank values in the column SalesAmount.
Input the expression given below and save it as AllValue. So, the name of the Measure will be AllValue.
CALCULATE(
COUNTX(
SELECTATTRIBUTES(
'FactInternetSales',
'DimCustomer'[CustomerKey],
'DimProduct'[EnglishProductName],
'FactInternetSales'[SalesAmount]
),
'FactInternetSales'[SalesAmount]
),
summarize(
FILTER(
SUMMARIZECOLUMNS(
'DimCustomer'[CustomerKey],
'DimProduct'[EnglishProductName],
"SalesOrderNameCount",
CALCULATE(
DISTINCTCOUNTX(
SELECTATTRIBUTES(
'FactInternetSales',
'DimCustomer'[CustomerKey],
'DimProduct'[EnglishProductName]
),
'DimProduct'[EnglishProductName]
),
REMOVEFILTERS('DimProduct'[EnglishProductName])
),
"NameCount",
CALCULATE(DISTINCTCOUNTX(ALL('DimProduct'), 'DimProduct'[EnglishProductName]))
),
[SalesOrderNameCount] =[NameCount]
),
'DimCustomer'[CustomerKey]
)
)
Drag both the measures to the Values.