[]
In this guide, we’ll walk through how to apply a two-color scale to the Total Sales Amount column.
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 Total Sales Amount.
Leave Based On set to Field Value.
Open the dropdown for Style.
Select Color Scales.
Choose a Two-Color Scale option from the list.
Click OK to apply the formatting.
Here’s a sample query you can use against the AdventureWorksDW database to get a dataset with varied sales amounts:
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 with the conditional formatting applied:
