Skip to content

Commit

Permalink
Add conditional formatting to YoY % change column in desk review work…
Browse files Browse the repository at this point in the history
…book
  • Loading branch information
jeancochrane committed Feb 7, 2024
1 parent 666e965 commit 6091e19
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pipeline/07-export.R
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,15 @@ for (town in unique(assessment_pin_prepped$township_code)) {
)
addFilter(wb, pin_sheet_name, 6, 1:47)

# Format YoY % change column with a range of colors from low to high
conditionalFormatting(
wb, pin_sheet_name,
cols = c(24),
rows = pin_row_range,
style = c("#F8696B", "#FFFFFF", "#00B0F0"),
rule = c(-1, 0, 1),
type = "colourScale"
)
# Format sale columns such that they are red if the sale has an outlier flag
conditionalFormatting(
wb, pin_sheet_name,
Expand Down

0 comments on commit 6091e19

Please sign in to comment.