File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 11## Conditional format using a gradient
22``` ts
33[ HSL Hue from Sales ] =
4- // simpler version, scales hue from 0 degrees to maxHue
5-
4+ // simpler version, which scales hue from 0 degrees to maxHue
65 // outputs a gradient like:
76 // hsl( 0, 80%, 78%)
87 // hsl( 40, 80%, 78%)
98 // hsl( 160, 80%, 78%)
10- var hue_1 = 0
11- var hue_2 = 40
12- var hue_3 = 160
139 var maxHue = 160
1410
11+ // Can this ALL() be rewritten to run faster?
1512 VAR CurrentValue = SELECTEDVALUE ( Sale [Value ], 0 )
1613 VAR MinValue = CALCULATE ( MIN (Sale [Value ]), All ( Sale [Value ] ) )
1714 VAR MaxValue = CALCULATE ( MAX (Sale [Value ]), All ( Sale [Value ] ) )
18- // Can this ALL() be rewritten to run faster?
1915
2016 var relativeValue =
2117 DIVIDE (
You can’t perform that action at this time.
0 commit comments