Skip to content

Commit 67a6e1a

Browse files
committed
✏️ Fixes formula
1 parent 0a95ab4 commit 67a6e1a

File tree

1 file changed

+1
-1
lines changed
  • x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/formula

1 file changed

+1
-1
lines changed

x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/formula/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ Example: \`gte(average(bytes), 1000)\`
730730
Returns a value depending on whether the element of condition is true or false.
731731
732732
Example: Average revenue per customer but in some cases customer id is not provided which counts as additional customer
733-
\`sum(total)/(cardinality(customer_id) + ifelse(count() > count(filter=customer_id:*), 1, 0))\`
733+
\`sum(total)/(unique_count(customer_id) + ifelse( count() > count(kql='customer_id:*'), 1, 0))\`
734734
`,
735735
}),
736736
},

0 commit comments

Comments
 (0)