Skip to content

Commit 6d6f7bc

Browse files
authored
Update Conditional-Colors-Dax-CheatSheet.md
1 parent 2b8a61e commit 6d6f7bc

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

source-dax/Conditional-Colors-Dax-CheatSheet.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
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(

0 commit comments

Comments
 (0)