Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

SUM Filter Text

Hi All,   I am trying to create a measure to sum one column then filter that sum based upon text values in another column.   (The text filter will have to be based on a "or" function, not "and") ...
  • Samarth_18's avatar
    Samarth_18
    4 years ago

    Yes you can add like below

    Site Mileage =
    CALCULATE (
        SUM ( TrakM8[Distance (mi)] ),
        TrakM8[Start Date]
            IN { "10th Street", "11th Street", "12th Street", "13th Street", "14th Street" },
    TrackM8[somecolumn] IN {somevalue1,somevalue2,somevalueN}
    )