[]
In this guide, we’ll walk through how to highlight rows where the Total Quantity is between two values, and then we’ll finish with a sample AdventureWorks query.
In your Wyn dashboard, select the table you want to format.
Once selected, the action buttons appear on the right-hand side.
Click the Conditional Formatting button from the action menu.
The Conditional Formatting window will open.
Under Set For, select Entire Row.
This ensures the entire row is highlighted, not just a single cell.
Leave Based On set to Field Value.
For Referenced Field, choose Total Quantity.
For Style, open the dropdown and select New Rule…
In the list of rule types, select Format only cells that contain.
In the properties panel:
Change the condition to Between.
Enter the two numeric values you want to use as boundaries.
Example: 500 and 700.
After the word Preview, choose your formatting style.
Example: White Fill with Dark Blue Text.
Click OK to close the properties window.
Click OK again in the Conditional Formatting window to apply the rule.
Here’s a query you can run against AdventureWorksDW to get a dataset with Total Quantity values that you can use for this rule:
SELECT TOP 20
p.ProductKey,
p.EnglishProductName AS ProductName,
SUM(f.SalesAmount) AS TotalSalesAmount,
SUM(f.OrderQuantity) AS TotalQuantity
FROM
FactResellerSales AS f
JOIN
DimProduct AS p ON f.ProductKey = p.ProductKey
JOIN
DimDate AS d ON f.OrderDateKey = d.DateKey
WHERE
d.CalendarYear = 2013
GROUP BY
p.ProductKey,
p.EnglishProductName
ORDER BY
TotalSalesAmount DESC;And this is the table which uses conditional formatting:
