Forum Discussion

mkwiatkowski's avatar
mkwiatkowski
Frequent Visitor
4 years ago
Solved

Count rows based on column which is a measure

I'm trying to create a count of rows based off a column which is a measure. So in screenshot example below i have a column called 'data_field' and another called 'PercentageCoverage' which is a mea...
  • johnt75's avatar
    4 years ago

    Set up a new table, e.g. Segments, which contains the min and max values for the range and the text you want to display. Then you can create a new measure

    Num in segment =
    SUMX (
        Segment,
        COUNTROWS (
            FILTER (
                'Table',
                [PercentCoverage] >= Segments[Min value]
                    && [PercentCoverage] < Segments[Max value]
            )
        )
    )