Forum Discussion

apelleti's avatar
apelleti
Helper I
3 years ago
Solved

DAX expression question

Hi everyone,    I'm looking for a DAX forumla that will return the column below "Significant Line". If a line contains at least one significant segment (Significant Segment = Yes), then each entry ...
  • FreemanZ's avatar
    FreemanZ
    3 years ago

    Update like this:

    Column =
    VAR _line = TableName[Line]
    VAR SigSeg =
    CALCULATE(
        MAX(TableName[Significant Segment]),
        TableName[Line] = _line,
        ALL()
    )
    RETURN
    IF(SigSeg="Yes", "Yes", "No")
     
    tried and it worked like this: