You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/AbcClassification/README.md
+12-16Lines changed: 12 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Functions to implement the [ABC Classification](https://www.daxpatterns.com/abc-
4
4
5
5
## What it does
6
6
7
-
`ComputeInAbcClass` evaluates an expression by filtering the *entity* (e.g., Product, Customer) belongs to the ABC classes active in the filter context from a disconnected “ABC Classes” table, **respecting all active report filters**. Use it to build dynamic ABC analyses that slice by time, region, or any other dimension. ([daxpatterns.com][1])
7
+
`ComputeInAbcClass` evaluates an expression by filtering the *entity* (e.g., Product, Customer) belongs to the ABC classes active in the filter context from a disconnected “ABC Classes” table, **respecting all active report filters**. Use it to build dynamic ABC analyses that slice by time, region, or any other dimension.
8
8
9
9
---
10
10
@@ -24,7 +24,7 @@ ComputeInAbcClass (
24
24
25
25
**Return:**`TRUE` if the entity’s cumulative share (by `<valueExpr>`) falls within the class boundaries on the current row of `<abcClassTable>`. Otherwise `FALSE`. Use it inside measures to filter or label entities.
26
26
27
-
**Assumptions:** Dynamic ABC as in the DAX Patterns article with a parameter table of class boundaries. The measure supplied must aggregate with `SUM`. ([daxpatterns.com][1])
27
+
**Assumptions:** Dynamic ABC as in the DAX Patterns article with a parameter table of class boundaries. The measure supplied must aggregate with `SUM`.
28
28
29
29
---
30
30
@@ -58,7 +58,7 @@ DATATABLE (
58
58
})
59
59
```
60
60
61
-
This matches the pattern described in DAX Patterns and its dynamic variant (classification driven by a disconnected parameter table). ([daxpatterns.com][1])
61
+
This matches the pattern described in DAX Patterns and its dynamic variant (classification driven by a disconnected parameter table).
62
62
63
63
---
64
64
@@ -78,33 +78,29 @@ ComputeInAbcClass (
78
78
79
79
```
80
80
81
-
These produce a **dynamic** ABC where class membership updates with filters (e.g., year, region). ([daxpatterns.com][1])
81
+
These produce a **dynamic** ABC where class membership updates with filters (e.g., year, region).
82
82
83
83
---
84
84
85
85
## Tips, constraints, and performance
86
86
87
-
***Additivity:**`<valueExpr>` must be SUM-based for correct cumulative ranking in the dynamic pattern. Non-additive measures break the logic. ([daxpatterns.com][1])
87
+
***Additivity:**`<valueExpr>` must be SUM-based for correct cumulative ranking in the dynamic pattern. Non-additive measures break the logic.
88
88
***Boundaries:** Treat `Lower Boundary` as inclusive and `Upper Boundary` as exclusive to avoid overlaps at exact cut points (e.g., 0.70 belongs to B if A ends at 0.70).
89
-
***Disconnected classes:** Do **not** relate `ABC Classes` to other tables. It is a parameter table used by the measure. ([daxpatterns.com][2])
89
+
***Disconnected classes:** Do **not** relate `ABC Classes` to other tables. It is a [parameter table](https://www.daxpatterns.com/parameter-table/) used by the measure.
90
90
***Granularity:** Pass the **entity key** that defines classification granularity.
91
-
***Scaling:** With very high entity cardinality, consider pre-aggregation by entity or snapshot ABC when dynamics are not needed. ([daxpatterns.com][1])
91
+
***Scaling:** With very high entity cardinality, consider pre-aggregation by entity or snapshot ABC when dynamics are not needed.
0 commit comments