Forum Discussion
apelleti
Helper I
3 years agoDAX 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 ...
- 3 years ago
Update like this:
Column =VAR _line = TableName[Line]VAR SigSeg =CALCULATE(MAX(TableName[Significant Segment]),TableName[Line] = _line,ALL())RETURNIF(SigSeg="Yes", "Yes", "No")tried and it worked like this:
FreemanZ
Super User
3 years agohi apelleti
For calculated column, try like:
Significant Line =
VAR _line = [Line]
VAR SigSeg =
CALCULATE(
MAX([Significant Segment]),
[Line] = _line
)
RETURN
IF(SigSeg="Yes", "Yes", "No")
- FreemanZ3 years ago
Super User
Update like this:
Column =VAR _line = TableName[Line]VAR SigSeg =CALCULATE(MAX(TableName[Significant Segment]),TableName[Line] = _line,ALL())RETURNIF(SigSeg="Yes", "Yes", "No")tried and it worked like this: