We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b8a61e commit 6d6f7bcCopy full SHA for 6d6f7bc
1 file changed
source-dax/Conditional-Colors-Dax-CheatSheet.md
@@ -1,21 +1,17 @@
1
## Conditional format using a gradient
2
```ts
3
[ HSL Hue from Sales ] =
4
- // simpler version, scales hue from 0 degrees to maxHue
5
-
+ // simpler version, which scales hue from 0 degrees to maxHue
6
// outputs a gradient like:
7
// hsl( 0, 80%, 78%)
8
// hsl( 40, 80%, 78%)
9
// hsl( 160, 80%, 78%)
10
- var hue_1 = 0
11
- var hue_2 = 40
12
- var hue_3 = 160
13
var maxHue = 160
14
+ // Can this ALL() be rewritten to run faster?
15
VAR CurrentValue = SELECTEDVALUE( Sale[Value], 0 )
16
VAR MinValue = CALCULATE( MIN(Sale[Value]), All( Sale[Value] ) )
17
VAR MaxValue = CALCULATE( MAX(Sale[Value]), All( Sale[Value] ) )
18
- // Can this ALL() be rewritten to run faster?
19
20
var relativeValue =
21
DIVIDE(
0 commit comments