Rules / Performance

Unpivot pivoted (month) data

warning UNPIVOT_PIVOTED_(MONTH)_DATA · ported · scope: Table, CalculatedTable

What it checks

Tables that have a numeric column for each of Jan, Feb, Mar, Apr, May, and Jun, matched as substrings of the column names.

Why it matters

A column per month is a spreadsheet layout. In a model it means a measure per month, no way to filter by date, no relationship to the date table, and a schema change every year. Unpivoted into one Month column and one Value column, the same data relates to the date table and every measure and time intelligence function works over it.

How to fix it

In Power Query, select the month columns, choose Unpivot Columns, and rename the Attribute and Value columns. Then relate the month to the date table.

Quirks

Links

Check a model for this Improve this page