@if (drilling()) { }
@if (drilling()) { } @if (isLoading()) {
} @else { }
@if (error()) {
🐞
{{ error() }}
} @else {
@if (options?.icon) { } @if (kpiValue$ | async; as kpiValue) {
} @if (trend$ | async; as trend) {
{{ options?.targetText }}
@if (options?.showDeviation) {
{{ options?.deviationText || ('NX.SMART_KPI.DEVIATION_TEXT' | translate) }}
}
} @if (isLoading()) { }
@if (additionalDataPoints$ | async; as additionals) {
@for (kpiValue of additionals; track $index) { }
}
}
{{ kpiValue?.Title || options?.valueText }}
@if (kpiValue.arrow) {
@switch (kpiValue.arrow) { @case (TrendType.StrongUp) { } @case (TrendType.Up) { } @case (TrendType.Down) { } @case (TrendType.StrongDown) { } @default { } }
}
@if (options?.showDeviation) {
@if (options?.deviationText) {
{{ options?.deviationText }}
}
}
@if (editableSignal() && showPlaceholder()) {
{{ 'Story.Widgets.KPI.Title' | translate: { Default: 'KPI' } }}
} @if (drilling()) {
}
{{ 'Ngm.Selection.Slicers' | translate: { Default: 'Slicers' } }}
{{ 'Ngm.AnalyticalCard.DrillDimension' | translate: { Default: 'Drill Dimension' } }}
@for (item of dimensions(); track item.name) { @if (item.hierarchies.length > 1) {
{{ item.caption }}
@for (h of item.hierarchies; track h.name) { } } @else { } }