Skip to content
ALLURE
Skip to main content

Allure Analytics

Measures, comparisons and trustworthy totals

Keep calculations in the model where they belong, and use visual calculations when their scope is appropriate.

Use explicit measures

Bind a measure such as Sales Actuals as Actual and a separately calculated measure such as Sales PY as the comparison. The visual receives their evaluated values. It does not create last-year DAX, change the relationship model, or repair a query that fails before delivering data.

DAX

Sales Actuals = SUM('Sales'[Amount])

Sales PY =
    CALCULATE(
        [Sales Actuals],
        SAMEPERIODLASTYEAR('Calendar'[Date])
    )

Model totals versus displayed sums

Host-supplied model totals are important for ratios, distinct counts and other non-additive measures. The Matrix defaults to model totals. KPI headlines use supplied totals, with a finite-period sum fallback only when a total is absent. The Charts’ generated additional Total bar represents its displayed additive bars, and waterfall endpoint settings distinguish model totals from displayed contributions.

A ratio is not a sum

Do not add monthly percentages to produce an annual percentage. Bind a model measure that computes the ratio at the total context. Visual formulas should evaluate total operands, not add formatted detail strings.

What blank means

SituationExpected behavior
A measure explicitly returns BLANK()Retain blank unless a compatible, explicit null-treatment option applies
Reference is zeroA percentage comparison is undefined; display blank or an em dash
A slicer removes a categoryThe visual cannot discover it from data it never receives
The model returns an errorCorrect DAX, dates or relationships; visual formatting cannot catch a failed query

Time intelligence checklist

Use a suitable connected Calendar table and a real Date column. Confirm the same measure in a native table under identical filters. DATEADD or SAMEPERIODLASTYEAR can fail with unsupported/non-contiguous date selections; that is a model calculation issue. Guard comparisons for your intended total context in DAX rather than forcing the card to use the latest month.

Back to the Knowledge Base

Keep totals at the right calculation scope

Native field-role and total-scope walkthrough across the supplied reports. Model calculations remain authoritative for ratios and other non-additive measures.

3840 × 2160 tutorial canvas at 20 fps. Real 2560 × 1392 Power BI Desktop screenshots retain their native size; this is a paced step sequence.

  1. Bind independently calculated references — Actual and comparison roles receive model measures. A visual displays the evaluated values; it does not invent last-year DAX or repair a failed date calculation.
  2. Preserve individual observations — For distribution analysis, retain observation grain before choosing bins. An aggregated value cannot recover the measurements hidden behind that aggregation.
  3. Use generated sums for additive values — The additional Total bar adds displayed values. Keep ratio and distinct-count totals in model measures; adding monthly percentages does not produce the annual percentage.
  4. Calculate a ratio from operands — The added Operating margin row divides Operating income by Revenue. The source ratios are formatted as percentages after the numeric calculation.

Download the 4K animated GIF · Download the 4K MP4