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 1
1
## Conditional format using a gradient
2
2
``` ts
3
3
[ 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
6
5
// outputs a gradient like:
7
6
// hsl( 0, 80%, 78%)
8
7
// hsl( 40, 80%, 78%)
9
8
// hsl( 160, 80%, 78%)
10
- var hue_1 = 0
11
- var hue_2 = 40
12
- var hue_3 = 160
13
9
var maxHue = 160
14
10
11
+ // Can this ALL() be rewritten to run faster?
15
12
VAR CurrentValue = SELECTEDVALUE ( Sale [Value ], 0 )
16
13
VAR MinValue = CALCULATE ( MIN (Sale [Value ]), All ( Sale [Value ] ) )
17
14
VAR MaxValue = CALCULATE ( MAX (Sale [Value ]), All ( Sale [Value ] ) )
18
- // Can this ALL() be rewritten to run faster?
19
15
20
16
var relativeValue =
21
17
DIVIDE (
You can’t perform that action at this time.
0 commit comments