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:
tamerj1
Community Champion
3 years agoHi apelleti
you can also use
SignificantLine =
IF (
"Yes"
IN CALCULATETABLE (
VALUES ( 'Table'[SignificantSegment] ),
ALLEXCEPT ( 'Table', 'Table'[Line] )
),
"Yes",
"No"
)
or
SignificantLine =
IF (
COUNTROWS (
CALCULATETABLE (
VALUES ( 'Table'[SignificantSegment] ),
ALLEXCEPT ( 'Table', 'Table'[Line] )
)
) > 1,
"Yes",
"No"
)