Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Calculated column filter - for grouping rows

Hi!   I want to create a calculated column in tabular editor which will be used as a filter in reports. You could say, what I want to achieve, is a type of grouping of rows. I want to create "Order...
  • tamerj1's avatar
    3 years ago

    Hi Anonymous 

    please try

    Order Type Head =
    IF (
        COUNTROWS (
            CALCULATETABLE (
                VALUES ( 'Table'[Order type row] ),
                ALLEXCEPT ( 'Table', 'Table'[Order head] )
            )
        ) = 1,
        'Table'[Order type row],
        "Mixed"
    )