Forum Discussion

LorneS's avatar
LorneS
Copper Contributor
Feb 01, 2022
Solved

Pivot table two lines should be one

I am working on a pivot table, the underlying database is tied to a common numeric identifier, and the data spans several years. While the numeric identifier is consistent, the text label associated ...
  • SergeiBaklan's avatar
    Feb 01, 2022

    LorneS 
    Creating PivotTable add data to data model and add calculated column

    as

    =
    VAR agnt = Range[Agent]
    RETURN
        CALCULATE (
            CONCATENATEX ( VALUES ( Range[Name] ), Range[Name], ", " ),
            ALL ( Range ),
            Range[Agent] = agnt
        )

    Use it in PivotTable:

Resources