Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Group column values based on condition

As per screenshot of table below, in the "Job to Accep Elapsed Time (Days)" column, how do I group values greater than 10? Expected value when DAYS >= 10, show "10+" instead. Hope that makes sense. ...
  • Jihwan_Kim's avatar
    Jihwan_Kim
    4 years ago

    Hi,

    Please check the below picture and the attached pbix file.

     

     

     

    Total jobs by group : =
    CALCULATE (
    [Total Jobs :],
    FILTER (
    VALUES ( Data[Category] ),
    COUNTROWS (
    FILTER (
    GroupTable,
    IF (
    GroupTable[Max] <> BLANK (),
    [Days :] >= GroupTable[Min]
    && [Days :] <= GroupTable[Max],
    [Days :] >= GroupTable[Min]
    )
    )
    ) > 0
    )
    )